aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-18 15:15:24 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-18 15:15:24 +0200
commitb87c17cd16f1b23a07a65ee90a3e30a49992fa51 (patch)
tree8c03f16044b02ff430b6b67ba54f88c75ec3e8c2
parent7df28bbb8fa3ba2878c288401c898ec477e55df1 (diff)
downloadbusybox-w32-b87c17cd16f1b23a07a65ee90a3e30a49992fa51.tar.gz
busybox-w32-b87c17cd16f1b23a07a65ee90a3e30a49992fa51.tar.bz2
busybox-w32-b87c17cd16f1b23a07a65ee90a3e30a49992fa51.zip
*: stop defining _GNU_SOURCE in source files, it's in CFLAGS anyway
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--e2fsprogs/old_e2fsprogs/e2fsck.c4
-rw-r--r--libbb/get_line_from_file.c5
-rw-r--r--modutils/depmod.c2
-rw-r--r--shell/ash.c6
-rw-r--r--util-linux/hwclock.c7
5 files changed, 0 insertions, 24 deletions
diff --git a/e2fsprogs/old_e2fsprogs/e2fsck.c b/e2fsprogs/old_e2fsprogs/e2fsck.c
index 7384bc453..4c4c78d00 100644
--- a/e2fsprogs/old_e2fsprogs/e2fsck.c
+++ b/e2fsprogs/old_e2fsprogs/e2fsck.c
@@ -29,10 +29,6 @@
29 * Licensed under GPLv2 or later, see file License in this tarball for details. 29 * Licensed under GPLv2 or later, see file License in this tarball for details.
30 */ 30 */
31 31
32#ifndef _GNU_SOURCE
33#define _GNU_SOURCE 1 /* get strnlen() */
34#endif
35
36#include "e2fsck.h" /*Put all of our defines here to clean things up*/ 32#include "e2fsck.h" /*Put all of our defines here to clean things up*/
37 33
38#define _(x) x 34#define _(x) x
diff --git a/libbb/get_line_from_file.c b/libbb/get_line_from_file.c
index 3cb46d240..cbfb45b7c 100644
--- a/libbb/get_line_from_file.c
+++ b/libbb/get_line_from_file.c
@@ -9,11 +9,6 @@
9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 9 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
10 */ 10 */
11 11
12/* for getline() [GNUism]
13#ifndef _GNU_SOURCE
14#define _GNU_SOURCE 1
15#endif
16*/
17#include "libbb.h" 12#include "libbb.h"
18 13
19/* This function reads an entire line from a text file, up to a newline 14/* This function reads an entire line from a text file, up to a newline
diff --git a/modutils/depmod.c b/modutils/depmod.c
index 4718c4dcb..c734f142b 100644
--- a/modutils/depmod.c
+++ b/modutils/depmod.c
@@ -8,8 +8,6 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#undef _GNU_SOURCE
12#define _GNU_SOURCE
13#include "libbb.h" 11#include "libbb.h"
14#include "modutils.h" 12#include "modutils.h"
15#include <sys/utsname.h> /* uname() */ 13#include <sys/utsname.h> /* uname() */
diff --git a/shell/ash.c b/shell/ash.c
index 74fe8617b..171740768 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -36,12 +36,6 @@
36 36
37#define JOBS ENABLE_ASH_JOB_CONTROL 37#define JOBS ENABLE_ASH_JOB_CONTROL
38 38
39#if DEBUG
40# ifndef _GNU_SOURCE
41# define _GNU_SOURCE
42# endif
43#endif
44
45#include "busybox.h" /* for applet_names */ 39#include "busybox.h" /* for applet_names */
46#include <paths.h> 40#include <paths.h>
47#include <setjmp.h> 41#include <setjmp.h>
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 416271b31..3da2e23c3 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -12,13 +12,6 @@
12#include <sys/utsname.h> 12#include <sys/utsname.h>
13#include "rtc_.h" 13#include "rtc_.h"
14 14
15#if ENABLE_FEATURE_HWCLOCK_LONG_OPTIONS
16# ifndef _GNU_SOURCE
17# define _GNU_SOURCE
18# endif
19#endif
20
21
22/* diff code is disabled: it's not sys/hw clock diff, it's some useless 15/* diff code is disabled: it's not sys/hw clock diff, it's some useless
23 * "time between hwclock was started and we saw CMOS tick" quantity. 16 * "time between hwclock was started and we saw CMOS tick" quantity.
24 * It's useless since hwclock is started at a random moment, 17 * It's useless since hwclock is started at a random moment,