svn rev #3272: trunk/

ghudson@MIT.EDU ghudson at MIT.EDU
Thu Nov 5 15:14:00 EST 2009


Commit By: ghudson
Log Message:
Define _GNU_SOURCE to get prototypes like asprintf on most Linux
systems.  This is relatively safe in the realm of feature macros,
since it only affects glibc and glibc only uses it to expand, not
restrict or change the behavior of, the system symbol namespace.



Changed Files:
U   trunk/configure.ac
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2009-11-05 20:10:37 UTC (rev 3271)
+++ trunk/configure.ac	2009-11-05 20:13:59 UTC (rev 3272)
@@ -50,6 +50,10 @@
 #include <sys/socket.h>
 ])
 
+# Enables system protoypes for extended functions (such as asprintf)
+# on most Linux systems.
+AC_DEFINE(_GNU_SOURCE, 1, [Enable extended glibc prototypes])
+
 AC_HEADER_STDARG
 AC_HEADER_TIME
 CHECK_DIRENT




More information about the Krb5-appl-commits mailing list