configure.ac: rewrite support for backtrace detection
PATCH 1/2 configure.ac: rewrite support for backtrace detection
Signed-off-by Petr Vorel <[email protected]>
--- configure.ac | 4 ++++ src/log.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-)
configure.ac +4 -0
@@ -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
@@ -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
PATCH 2/2 don't redefine GNU_SOURCE
Signed-off-by Petr Vorel <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
Re: [PATCH 2/2] don't redefine GNU_SOURCE
Hi Petr,
Quoted 117 lines
Signed-off-by Petr Vorel <[email protected]>---
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
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
Re: [PATCH 2/2] don't redefine GNU_SOURCE
Hi Marcel,
Quoted 1 line
lets not do that. Either we have #define
_GNU_SOURCEin the files that need it or we letconfig.hset 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