Use _GNU_SOURCE on Linux systems.
[silc.git] / configure.ad
index f719d7a3aeb9dfd5fa5745a59592f7496ccf00a3..8ee9d61b87f5e4e494e6f19de149346b9fd56ebb 100644 (file)
@@ -33,6 +33,10 @@ AC_PATH_PROG(sedpath, sed)
 # Put here any platform specific stuff
 #
 case "$target" in
+  *-*-linux*)
+    check_threads=true
+    CFLAGS=`echo $CFLAGS -D_GNU_SOURCE`
+    ;;
   *-*-freebsd*)
     check_threads=true
     ;;