Skip to contentSkip to conversation

configure.ac: rewrite support for backtrace detection

PATCH In review Petr Vorel 2 participants 4 messages Nov 6, 2015 – Nov 13, 2015

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/2 configure.ac: rewrite support for backtrace detection

---
 configure.ac | 4 ++++
 src/log.c    | 8 ++++----
 2 files changed, 8 insertions(+), 4 deletions(-)
configure.ac +4 -0
index b8d42c8..b6183a1 100644
@@ -245,3 +245,7 @@ AC_DEFINE_UNQUOTED(CONFIGDIR, "${configdir}",
 
 AC_OUTPUT(Makefile include/version.h src/ofono.service ofono.pc \
 		dundee/dundee.service)
+
+dnl Check for backtrace() support
+AC_CHECK_HEADERS(execinfo.h)
+AC_CHECK_FUNCS(backtrace)
src/log.c +4 -4
index 6331b0d..0d55d6e 100644
@@ -30,7 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <syslog.h>
-#ifdef __GLIBC__
+#ifdef HAVE_EXECINFO_H
 #include <execinfo.h>
 #endif
 #include <dlfcn.h>
@@ -115,7 +115,7 @@ void ofono_debug(const char *format, ...)
 	va_end(ap);
 }
 
-#ifdef __GLIBC__
+#ifdef HAVE_BACKTRACE
 static void print_backtrace(unsigned int offset)
 {
 	void *frames[99];
@@ -309,7 +309,7 @@ int __ofono_log_init(const char *program, const char *debug,
 	if (detach == FALSE)
 		option |= LOG_PERROR;
 
-#ifdef __GLIBC__
+#ifdef HAVE_BACKTRACE
 	signal_setup(signal_handler);
 #endif
 
@@ -326,7 +326,7 @@ void __ofono_log_cleanup(void)
 
 	closelog();
 
-#ifdef __GLIBC__
+#ifdef HAVE_BACKTRACE
 	signal_setup(SIG_DFL);
 #endif
 
Signature · 1 line
2.6.2
author
#1 lore raw

PATCH 2/2 don't redefine GNU_SOURCE

---
 drivers/atmodem/call-barring.c          | 2 ++
 drivers/atmodem/call-forwarding.c       | 2 ++
 drivers/atmodem/call-meter.c            | 2 ++
 drivers/atmodem/call-settings.c         | 2 ++
 drivers/atmodem/call-volume.c           | 2 ++
 drivers/atmodem/cbs.c                   | 2 ++
 drivers/atmodem/gnss.c                  | 2 ++
 drivers/atmodem/gprs-context.c          | 2 ++
 drivers/atmodem/gprs.c                  | 2 ++
 drivers/atmodem/network-registration.c  | 2 ++
 drivers/atmodem/phonebook.c             | 2 ++
 drivers/atmodem/sim-auth.c              | 2 ++
 drivers/atmodem/sim.c                   | 2 ++
 drivers/atmodem/sms.c                   | 2 ++
 drivers/atmodem/stk.c                   | 2 ++
 drivers/atmodem/ussd.c                  | 2 ++
 drivers/atmodem/voicecall.c             | 2 ++
 drivers/calypsomodem/stk.c              | 2 ++
 drivers/calypsomodem/voicecall.c        | 2 ++
 drivers/cdmamodem/connman.c             | 2 ++
 drivers/cdmamodem/voicecall.c           | 2 ++
 drivers/hfpmodem/call-volume.c          | 2 ++
 drivers/hfpmodem/handsfree.c            | 2 ++
 drivers/hfpmodem/network-registration.c | 2 ++
 drivers/hfpmodem/siri.c                 | 2 ++
 drivers/hfpmodem/slc.c                  | 2 ++
 drivers/hfpmodem/voicecall.c            | 2 ++
 drivers/hsomodem/gprs-context.c         | 2 ++
 drivers/hsomodem/radio-settings.c       | 2 ++
 drivers/huaweimodem/audio-settings.c    | 2 ++
 drivers/huaweimodem/cdma-netreg.c       | 2 ++
 drivers/huaweimodem/gprs-context.c      | 2 ++
 drivers/huaweimodem/radio-settings.c    | 2 ++
 drivers/huaweimodem/voicecall.c         | 2 ++
 drivers/iceramodem/gprs-context.c       | 2 ++
 drivers/iceramodem/radio-settings.c     | 2 ++
 drivers/ifxmodem/audio-settings.c       | 2 ++
 drivers/ifxmodem/ctm.c                  | 2 ++
 drivers/ifxmodem/gprs-context.c         | 2 ++
 drivers/ifxmodem/radio-settings.c       | 2 ++
 drivers/ifxmodem/stk.c                  | 2 ++
 drivers/ifxmodem/voicecall.c            | 2 ++
 drivers/isimodem/audio-settings.c       | 2 ++
 drivers/isimodem/call-barring.c         | 2 ++
 drivers/isimodem/call-forwarding.c      | 2 ++
 drivers/isimodem/call-meter.c           | 2 ++
 drivers/isimodem/call-settings.c        | 2 ++
 drivers/isimodem/cbs.c                  | 2 ++
 drivers/isimodem/debug.c                | 2 ++
 drivers/isimodem/devinfo.c              | 2 ++
 drivers/isimodem/gprs-context.c         | 2 ++
 drivers/isimodem/gprs.c                 | 2 ++
 drivers/isimodem/network-registration.c | 2 ++
 drivers/isimodem/radio-settings.c       | 2 ++
 drivers/isimodem/sim.c                  | 2 ++
 drivers/isimodem/sms.c                  | 2 ++
 drivers/isimodem/uicc-util.c            | 2 ++
 drivers/isimodem/uicc.c                 | 2 ++
 drivers/isimodem/ussd.c                 | 2 ++
 drivers/isimodem/voicecall.c            | 2 ++
 drivers/mbmmodem/gprs-context.c         | 2 ++
 drivers/mbmmodem/location-reporting.c   | 2 ++
 drivers/mbmmodem/stk.c                  | 2 ++
 drivers/nwmodem/radio-settings.c        | 2 ++
 drivers/qmimodem/location-reporting.c   | 2 ++
 drivers/qmimodem/qmi.c                  | 2 ++
 drivers/rilmodem/call-forwarding.c      | 2 ++
 drivers/rilmodem/call-settings.c        | 2 ++
 drivers/rilmodem/call-volume.c          | 2 ++
 drivers/rilmodem/devinfo.c              | 2 ++
 drivers/rilmodem/gprs-context.c         | 2 ++
 drivers/rilmodem/gprs.c                 | 2 ++
 drivers/rilmodem/network-registration.c | 2 ++
 drivers/rilmodem/phonebook.c            | 2 ++
 drivers/rilmodem/radio-settings.c       | 2 ++
 drivers/rilmodem/sim.c                  | 2 ++
 drivers/rilmodem/sms.c                  | 2 ++
 drivers/rilmodem/ussd.c                 | 2 ++
 drivers/rilmodem/voicecall.c            | 2 ++
 drivers/stemodem/gprs-context.c         | 2 ++
 drivers/stemodem/radio-settings.c       | 2 ++
 drivers/stemodem/voicecall.c            | 2 ++
 drivers/swmodem/gprs-context.c          | 2 ++
 drivers/telitmodem/location-reporting.c | 2 ++
 drivers/ztemodem/radio-settings.c       | 2 ++
 gisi/client.c                           | 2 ++
 gisi/modem.c                            | 2 ++
 gril/parcel.c                           | 2 ++
 src/call-volume.c                       | 2 ++
 src/cdma-smsutil.c                      | 2 ++
 src/common.c                            | 2 ++
 src/gnss.c                              | 2 ++
 src/gnssagent.c                         | 2 ++
 src/handsfree.c                         | 2 ++
 src/idmap.c                             | 2 ++
 src/log.c                               | 2 ++
 src/phonebook.c                         | 2 ++
 src/sim-auth.c                          | 2 ++
 src/sim.c                               | 2 ++
 src/simfs.c                             | 2 ++
 src/siri.c                              | 2 ++
 src/smsagent.c                          | 2 ++
 src/smsutil.c                           | 2 ++
 src/stk.c                               | 2 ++
 src/stkagent.c                          | 2 ++
 src/storage.c                           | 2 ++
 src/ussd.c                              | 2 ++
 tools/tty-redirector.c                  | 2 ++
 108 files changed, 216 insertions(+)
drivers/atmodem/call-barring.c +2 -0
index 1239d05..243d3fc 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/call-forwarding.c +2 -0
index e2020d3..b40e920 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/call-meter.c +2 -0
index 430d546..7c2535f 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/call-settings.c +2 -0
index f017ab5..b185585 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/call-volume.c +2 -0
index e2535b1..7905e7e 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdio.h>
 
drivers/atmodem/cbs.c +2 -0
index 3c491be..196935e 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdio.h>
 
drivers/atmodem/gnss.c +2 -0
index 5d868dd..bc7eacf 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/gprs-context.c +2 -0
index f6e6c2e..c7486ff 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/gprs.c +2 -0
index 5551316..9aef095 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/network-registration.c +2 -0
index 7cfd6b2..94dc045 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/phonebook.c +2 -0
index a43b8cc..0a6995a 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/sim-auth.c +2 -0
index 271ceed..5b8c31c 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 
 #include <glib.h>
drivers/atmodem/sim.c +2 -0
index d6a0dcf..62e47e4 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/sms.c +2 -0
index f93dd23..7ef4c9d 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/stk.c +2 -0
index b4fb2f2..794a639 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/ussd.c +2 -0
index 2e45317..ab2fa15 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/atmodem/voicecall.c +2 -0
index 7d823a2..4fc8140 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/calypsomodem/stk.c +2 -0
index 9ac9d7c..5bc7f91 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/calypsomodem/voicecall.c +2 -0
index 3c047b7..bd7cd8c 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/cdmamodem/connman.c +2 -0
index 8c3265a..d41dc19 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/cdmamodem/voicecall.c +2 -0
index 98cf554..f4f22bb 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/hfpmodem/call-volume.c +2 -0
index 0d7431e..263e97b 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/hfpmodem/handsfree.c +2 -0
index 6e8c4d3..31280d2 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/hfpmodem/network-registration.c +2 -0
index 22ce664..d96da3d 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/hfpmodem/siri.c +2 -0
index 6106ef8..dcbc6ab 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/hfpmodem/slc.c +2 -0
index 8e62519..b4f4fbe 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
drivers/hfpmodem/voicecall.c +2 -0
index d0e9353..874e9e4 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/hsomodem/gprs-context.c +2 -0
index ce8d21c..8470a98 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/hsomodem/radio-settings.c +2 -0
index e3d87f3..9331995 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/huaweimodem/audio-settings.c +2 -0
index 1d4e903..f0d1297 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/huaweimodem/cdma-netreg.c +2 -0
index 2ae66e1..368ffd7 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <glib.h>
 #include <errno.h>
 
drivers/huaweimodem/gprs-context.c +2 -0
index 3acd90c..9cb40e5 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/huaweimodem/radio-settings.c +2 -0
index c34653a..b8c67c1 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/huaweimodem/voicecall.c +2 -0
index f55568d..f9e8eda 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/iceramodem/gprs-context.c +2 -0
index 5f3ff30..11f92cd 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/iceramodem/radio-settings.c +2 -0
index d76e545..eb03fc7 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/ifxmodem/audio-settings.c +2 -0
index ce31a06..e4657a0 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/ifxmodem/ctm.c +2 -0
index 827bf3b..f2fa59e 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/ifxmodem/gprs-context.c +2 -0
index 4cca265..3c46a13 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/ifxmodem/radio-settings.c +2 -0
index e4a09f2..9cfb8fa 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/ifxmodem/stk.c +2 -0
index 22aac62..4b3bb69 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/ifxmodem/voicecall.c +2 -0
index 7c27642..d511e66 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/isimodem/audio-settings.c +2 -0
index 3dc2796..98a87c6 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/isimodem/call-barring.c +2 -0
index 833c5ce..c715bad 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/call-forwarding.c +2 -0
index 6366c3f..e377120 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/call-meter.c +2 -0
index 3a558f6..60d798b 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/call-settings.c +2 -0
index b4533bb..c6f5c17 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/cbs.c +2 -0
index d102cdd..b3574f2 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/debug.c +2 -0
index a312c74..7c491b8 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
drivers/isimodem/devinfo.c +2 -0
index 3a59b35..d813e81 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/gprs-context.c +2 -0
index ce53d02..847ace6 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/isimodem/gprs.c +2 -0
index 2d64bf1..bcc9d8b 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/network-registration.c +2 -0
index 922eb9e..9cadfd7 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/radio-settings.c +2 -0
index 2c4989c..199da11 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/sim.c +2 -0
index 74c6b0d..43642d5 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/sms.c +2 -0
index 4caccc8..940726e 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/uicc-util.c +2 -0
index f04ca5a..8ac36c9 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/uicc.c +2 -0
index 0a5121d..214b550 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/ussd.c +2 -0
index 71f246d..28cc2f6 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/isimodem/voicecall.c +2 -0
index 460e34e..eb52fc5 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/mbmmodem/gprs-context.c +2 -0
index e961afa..428f7c8 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/mbmmodem/location-reporting.c +2 -0
index 7c50ac2..32dc24f 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/mbmmodem/stk.c +2 -0
index e33c91b..0252f97 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/nwmodem/radio-settings.c +2 -0
index e43504a..c60445e 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/qmimodem/location-reporting.c +2 -0
index e4ce233..fe22dfd 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <fcntl.h>
 #include <unistd.h>
 
drivers/qmimodem/qmi.c +2 -0
index 3389bb1..a7d4d34 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <ctype.h>
 #include <fcntl.h>
drivers/rilmodem/call-forwarding.c +2 -0
index 1fcedb3..fcab63a 100644
@@ -25,7 +25,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/rilmodem/call-settings.c +2 -0
index 3d10bc0..3ee63fd 100644
@@ -26,7 +26,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/rilmodem/call-volume.c +2 -0
index 2bf0c5f..6585834 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdio.h>
 #include <errno.h>
drivers/rilmodem/devinfo.c +2 -0
index bb1e642..a742f31 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/rilmodem/gprs-context.c +2 -0
index 2021533..0a8e59a 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/rilmodem/gprs.c +2 -0
index 75dcfcc..f0b97fb 100644
@@ -26,7 +26,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/rilmodem/network-registration.c +2 -0
index 6808a29..cc762df 100644
@@ -26,7 +26,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/rilmodem/phonebook.c +2 -0
index c3f1c0b..528aebf 100644
@@ -27,7 +27,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/rilmodem/radio-settings.c +2 -0
index 90b49c6..713e007 100644
@@ -25,7 +25,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/rilmodem/sim.c +2 -0
index f71bd0a..fcec19e 100644
@@ -25,7 +25,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/rilmodem/sms.c +2 -0
index 3eedadd..271f8fd 100644
@@ -25,7 +25,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <ctype.h>
 #include <string.h>
 #include <stdlib.h>
drivers/rilmodem/ussd.c +2 -0
index 9e9b0ff..f6b70d0 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
drivers/rilmodem/voicecall.c +2 -0
index 3fa4b37..b56d66c 100644
@@ -25,7 +25,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/stemodem/gprs-context.c +2 -0
index 18b2bfa..ded857d 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/stemodem/radio-settings.c +2 -0
index 15d09b7..96afb6f 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/stemodem/voicecall.c +2 -0
index 1cbf51a..311f073 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/swmodem/gprs-context.c +2 -0
index 1506ed1..b4be614 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/telitmodem/location-reporting.c +2 -0
index d16c58f..28c7cd8 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
drivers/ztemodem/radio-settings.c +2 -0
index d303af0..9557fe6 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
gisi/client.c +2 -0
index 7512441..d958af7 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdint.h>
 #include <string.h>
 #include <stdlib.h>
gisi/modem.c +2 -0
index aee24af..36e58da 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdint.h>
 #include <string.h>
 #include <sys/types.h>
gril/parcel.c +2 -0
index 1cd8c8e..69a5184 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
src/call-volume.c +2 -0
index ddb8b77..9ae82ef 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
src/cdma-smsutil.c +2 -0
index e36f2e3..807f2f8 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <dirent.h>
 #include <sys/types.h>
src/common.c +2 -0
index 17d1d58..7d5b78e 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <errno.h>
 
src/gnss.c +2 -0
index 97d1152..ece9594 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
src/gnssagent.c +2 -0
index 56d00f9..049dc46 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdint.h>
 #include <string.h>
 #include <errno.h>
src/handsfree.c +2 -0
index 31b9d7d..1974b63 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
src/idmap.c +2 -0
index c097eb4..ccc9cb5 100644
@@ -24,7 +24,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 
 #include <glib.h>
src/log.c +2 -0
index 0d55d6e..22b4596 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <unistd.h>
 #include <stdarg.h>
src/phonebook.c +2 -0
index 531b5a6..d50ee9a 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
src/sim-auth.c +2 -0
index 5d2f075..c7e97f5 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 
 #include <glib.h>
 #include <errno.h>
src/sim.c +2 -0
index 7614b33..c77c0a3 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdio.h>
 #include <stdint.h>
src/simfs.c +2 -0
index 03c8c9e..ab32969 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdio.h>
 
src/siri.c +2 -0
index 649518f..9ab73cf 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
src/smsagent.c +2 -0
index 68ca54e..b999055 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdint.h>
 #include <string.h>
 #include <errno.h>
src/smsutil.c +2 -0
index 19e2016..eaf99cc 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
src/stk.c +2 -0
index 01c95b5..ddedb89 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
src/stkagent.c +2 -0
index 4bd39b8..210b03c 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdint.h>
 #include <string.h>
 #include <errno.h>
src/storage.c +2 -0
index bde0bea..64694d1 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdarg.h>
 #include <sys/types.h>
src/ussd.c +2 -0
index bc8e0f6..cf944b0 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdio.h>
 #include <errno.h>
tools/tty-redirector.c +2 -0
index b015a25..59e0dc4 100644
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <stdio.h>
 #include <fcntl.h>
 #include <unistd.h>
Signature · 1 line
2.6.2
#2 lore raw

Re: [PATCH 2/2] don't redefine GNU_SOURCE

Hi Petr,

Quoted 117 lines

---

drivers/atmodem/call-barring.c          | 2 ++
drivers/atmodem/call-forwarding.c       | 2 ++
drivers/atmodem/call-meter.c            | 2 ++
drivers/atmodem/call-settings.c         | 2 ++
drivers/atmodem/call-volume.c           | 2 ++
drivers/atmodem/cbs.c                   | 2 ++
drivers/atmodem/gnss.c                  | 2 ++
drivers/atmodem/gprs-context.c          | 2 ++
drivers/atmodem/gprs.c                  | 2 ++
drivers/atmodem/network-registration.c  | 2 ++
drivers/atmodem/phonebook.c             | 2 ++
drivers/atmodem/sim-auth.c              | 2 ++
drivers/atmodem/sim.c                   | 2 ++
drivers/atmodem/sms.c                   | 2 ++
drivers/atmodem/stk.c                   | 2 ++
drivers/atmodem/ussd.c                  | 2 ++
drivers/atmodem/voicecall.c             | 2 ++
drivers/calypsomodem/stk.c              | 2 ++
drivers/calypsomodem/voicecall.c        | 2 ++
drivers/cdmamodem/connman.c             | 2 ++
drivers/cdmamodem/voicecall.c           | 2 ++
drivers/hfpmodem/call-volume.c          | 2 ++
drivers/hfpmodem/handsfree.c            | 2 ++
drivers/hfpmodem/network-registration.c | 2 ++
drivers/hfpmodem/siri.c                 | 2 ++
drivers/hfpmodem/slc.c                  | 2 ++
drivers/hfpmodem/voicecall.c            | 2 ++
drivers/hsomodem/gprs-context.c         | 2 ++
drivers/hsomodem/radio-settings.c       | 2 ++
drivers/huaweimodem/audio-settings.c    | 2 ++
drivers/huaweimodem/cdma-netreg.c       | 2 ++
drivers/huaweimodem/gprs-context.c      | 2 ++
drivers/huaweimodem/radio-settings.c    | 2 ++
drivers/huaweimodem/voicecall.c         | 2 ++
drivers/iceramodem/gprs-context.c       | 2 ++
drivers/iceramodem/radio-settings.c     | 2 ++
drivers/ifxmodem/audio-settings.c       | 2 ++
drivers/ifxmodem/ctm.c                  | 2 ++
drivers/ifxmodem/gprs-context.c         | 2 ++
drivers/ifxmodem/radio-settings.c       | 2 ++
drivers/ifxmodem/stk.c                  | 2 ++
drivers/ifxmodem/voicecall.c            | 2 ++
drivers/isimodem/audio-settings.c       | 2 ++
drivers/isimodem/call-barring.c         | 2 ++
drivers/isimodem/call-forwarding.c      | 2 ++
drivers/isimodem/call-meter.c           | 2 ++
drivers/isimodem/call-settings.c        | 2 ++
drivers/isimodem/cbs.c                  | 2 ++
drivers/isimodem/debug.c                | 2 ++
drivers/isimodem/devinfo.c              | 2 ++
drivers/isimodem/gprs-context.c         | 2 ++
drivers/isimodem/gprs.c                 | 2 ++
drivers/isimodem/network-registration.c | 2 ++
drivers/isimodem/radio-settings.c       | 2 ++
drivers/isimodem/sim.c                  | 2 ++
drivers/isimodem/sms.c                  | 2 ++
drivers/isimodem/uicc-util.c            | 2 ++
drivers/isimodem/uicc.c                 | 2 ++
drivers/isimodem/ussd.c                 | 2 ++
drivers/isimodem/voicecall.c            | 2 ++
drivers/mbmmodem/gprs-context.c         | 2 ++
drivers/mbmmodem/location-reporting.c   | 2 ++
drivers/mbmmodem/stk.c                  | 2 ++
drivers/nwmodem/radio-settings.c        | 2 ++
drivers/qmimodem/location-reporting.c   | 2 ++
drivers/qmimodem/qmi.c                  | 2 ++
drivers/rilmodem/call-forwarding.c      | 2 ++
drivers/rilmodem/call-settings.c        | 2 ++
drivers/rilmodem/call-volume.c          | 2 ++
drivers/rilmodem/devinfo.c              | 2 ++
drivers/rilmodem/gprs-context.c         | 2 ++
drivers/rilmodem/gprs.c                 | 2 ++
drivers/rilmodem/network-registration.c | 2 ++
drivers/rilmodem/phonebook.c            | 2 ++
drivers/rilmodem/radio-settings.c       | 2 ++
drivers/rilmodem/sim.c                  | 2 ++
drivers/rilmodem/sms.c                  | 2 ++
drivers/rilmodem/ussd.c                 | 2 ++
drivers/rilmodem/voicecall.c            | 2 ++
drivers/stemodem/gprs-context.c         | 2 ++
drivers/stemodem/radio-settings.c       | 2 ++
drivers/stemodem/voicecall.c            | 2 ++
drivers/swmodem/gprs-context.c          | 2 ++
drivers/telitmodem/location-reporting.c | 2 ++
drivers/ztemodem/radio-settings.c       | 2 ++
gisi/client.c                           | 2 ++
gisi/modem.c                            | 2 ++
gril/parcel.c                           | 2 ++
src/call-volume.c                       | 2 ++
src/cdma-smsutil.c                      | 2 ++
src/common.c                            | 2 ++
src/gnss.c                              | 2 ++
src/gnssagent.c                         | 2 ++
src/handsfree.c                         | 2 ++
src/idmap.c                             | 2 ++
src/log.c                               | 2 ++
src/phonebook.c                         | 2 ++
src/sim-auth.c                          | 2 ++
src/sim.c                               | 2 ++
src/simfs.c                             | 2 ++
src/siri.c                              | 2 ++
src/smsagent.c                          | 2 ++
src/smsutil.c                           | 2 ++
src/stk.c                               | 2 ++
src/stkagent.c                          | 2 ++
src/storage.c                           | 2 ++
src/ussd.c                              | 2 ++
tools/tty-redirector.c                  | 2 ++
108 files changed, 216 insertions(+)
drivers/atmodem/call-barring.c +0 -0
index 1239d05..243d3fc 100644

drivers/atmodem/call-barring.c line 28

Quoted 6 lines
drivers/atmodem/call-barring.c +2 -0
@@ -23,7 +23,9 @@
 #include <config.h>
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif

lets not do that. Either we have #define _GNU_SOURCE in the files that need it or we let config.h set it unconditionally. However we are not #ifdef around it ever.

Regards

Marcel

author
#3 lore raw

Re: [PATCH 2/2] don't redefine GNU_SOURCE

Hi Marcel,

Quoted 1 line

lets not do that. Either we have #define _GNU_SOURCE in the files that need it or we let config.h set it unconditionally. However we are not #ifdef around it ever.

sorry for wrong post. I was wrong (_GNU_SOURCE is redefined due buildroot config). I posted other patch, which adds missing _GNU_SOURCE.

Kind regards,
Petr