diff --git a/src/netwib-src/src/genemake b/src/netwib-src/src/genemake
index 1b1292d..aeb0572 100755
--- a/src/netwib-src/src/genemake
+++ b/src/netwib-src/src/genemake
@@ -305,7 +305,7 @@ checkcompilstd ()
     "Linux" )
       echo "#define _GNU_SOURCE 1" >> config.check.tmp.c
       echo "#define _POSIX_SOURCE 1" >> config.check.tmp.c
-      echo "#define _BSD_SOURCE 1" >> config.check.tmp.c
+      echo "#define _DEFAULT_SOURCE 1" >> config.check.tmp.c
       echo "#define _LARGEFILE_SOURCE 1" >> config.check.tmp.c
       echo "#define _FILE_OFFSET_BITS 64" >> config.check.tmp.c
       ;;
diff --git a/src/netwib-src/src/netwib/inc/maininc.h b/src/netwib-src/src/netwib/inc/maininc.h
index a16bc72..44e994f 100644
--- a/src/netwib-src/src/netwib/inc/maininc.h
+++ b/src/netwib-src/src/netwib/inc/maininc.h
@@ -37,7 +37,7 @@
  #define _GNU_SOURCE 1
  /* should not be necessary, but SuSE 5.1 need those three defines */
  #define _POSIX_SOURCE 1
- #define _BSD_SOURCE 1
+ #define _DEFAULT_SOURCE 1
  /* large file support */
  #define _LARGEFILE_SOURCE 1
  #define _FILE_OFFSET_BITS 64
@@ -70,7 +70,7 @@
   NETWIB_UNSUPPORTED_TAKEDECISION
   #define _GNU_SOURCE 1
   #define _POSIX_SOURCE 1
-  #define _BSD_SOURCE 1
+  #define _DEFAULT_SOURCE 1
   #define _LARGEFILE_SOURCE 1
   #define _FILE_OFFSET_BITS 64
   #define __EXTENSIONS__ 1
diff --git a/src/netwox-src/src/netwox.h b/src/netwox-src/src/netwox.h
index 62020b3..5e600aa 100644
--- a/src/netwox-src/src/netwox.h
+++ b/src/netwox-src/src/netwox.h
@@ -34,7 +34,7 @@
  #define _GNU_SOURCE 1
  /* should not be necessary, but SuSE 5.1 need those three defines */
  #define _POSIX_SOURCE 1
- #define _BSD_SOURCE 1
+ #define _DEFAULT_SOURCE 1
 #elif defined NETWIBDEF_SYSNAME_FreeBSD
  #define _POSIX_C_SOURCE 1
 #elif defined NETWIBDEF_SYSNAME_MacOS
