revert cid 100506499941EC578A6: musl has _ALL_SOURCE now, aliased to

_GNU_SOURCE which we already define for convenience; thanks to dalias
and chris2 on IRC for discussion and being accomodating!
This commit is contained in:
tg
2012-12-03 22:10:02 +00:00
parent 2213c5887a
commit 7fc9e1b492

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.596 2012/12/03 13:07:11 tg Exp $' srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.597 2012/12/03 22:10:02 tg Exp $'
#- #-
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012 # 2011, 2012
@ -594,7 +594,6 @@ IRIX*)
Linux) Linux)
case $CC in case $CC in
*tendracc*) ;; *tendracc*) ;;
*/musl-gcc*) add_cppflags -D_GNU_SOURCE -D_BSD_SOURCE ;;
*) add_cppflags -D_GNU_SOURCE ;; *) add_cppflags -D_GNU_SOURCE ;;
esac esac
add_cppflags -DSETUID_CAN_FAIL_WITH_EAGAIN add_cppflags -DSETUID_CAN_FAIL_WITH_EAGAIN
@ -1481,7 +1480,7 @@ else
#define EXTERN #define EXTERN
#define MKSH_INCLUDES_ONLY #define MKSH_INCLUDES_ONLY
#include "sh.h" #include "sh.h"
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.596 2012/12/03 13:07:11 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.597 2012/12/03 22:10:02 tg Exp $");
int main(void) { printf("Hello, World!\n"); return (0); } int main(void) { printf("Hello, World!\n"); return (0); }
EOF EOF
case $cm in case $cm in