diff options
author | cypherpunks <cypherpunks@torproject.org> | 2016-06-17 13:43:25 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-17 10:17:44 -0400 |
commit | 94762e37b950f3ce1696c78dd4f7a89b6d05f1ac (patch) | |
tree | e9b3517710fc601d2e7cac22d0620498cc145a0c /src/common/compat.c | |
parent | 9a63f059b9eefa910a8c74b4936623dd37e946dd (diff) | |
download | tor-94762e37b950f3ce1696c78dd4f7a89b6d05f1ac.tar.gz tor-94762e37b950f3ce1696c78dd4f7a89b6d05f1ac.zip |
Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS
The Autoconf macro AC_USE_SYSTEM_EXTENSIONS defines preprocessor macros
which turn on extensions to C and POSIX. The macro also makes it easier
for developers to use the extensions without needing (or forgetting) to
define them manually.
The macro can be safely used because it was introduced in Autoconf 2.60
and Tor requires Autoconf 2.63 and above.
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 370881b07e..72dffe2a6e 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -12,18 +12,6 @@ * the platform. **/ -/* This is required on rh7 to make strptime not complain. - * We also need it to make memmem get defined (where available) - */ - -/* XXXX We should just use AC_USE_SYSTEM_EXTENSIONS in our autoconf, - * and get this (and other important stuff!) automatically. Once we do that, - * make sure to also change the extern char **environ detection in - * configure.ac, because whether that is declared or not depends on whether - * we have _GNU_SOURCE defined! Maybe that means that once we take this out, - * we can also take out the configure check. */ -#define _GNU_SOURCE - #define COMPAT_PRIVATE #include "compat.h" |