A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
documentation fix
[simgrid.git]
/
src
/
mk_supernovae.sh
diff --git
a/src/mk_supernovae.sh
b/src/mk_supernovae.sh
index
e8c2fc5
..
cec0876
100755
(executable)
--- a/
src/mk_supernovae.sh
+++ b/
src/mk_supernovae.sh
@@
-3,10
+3,15
@@
file=$1
shift
file=$1
shift
-echo "#define SUPERNOVAE_MODE 1" > $file
-echo '#include <ctype.h>' >> $file
-echo '#include "portable.h"' >> $file
-echo '#include "xbt.h"' >> $file
+cat > $file <<EOF
+#define SUPERNOVAE_MODE 1
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE /* for getline() with older libc */
+#endif
+#include <ctype.h>
+#include "portable.h"
+#include "xbt.h"
+EOF
for n in $@ ; do
# echo "File $n"
if [ "X$n" = 'Xxbt/log.c' ] ; then
for n in $@ ; do
# echo "File $n"
if [ "X$n" = 'Xxbt/log.c' ] ; then