Przeglądaj źródła

lib/srdb1: fix compiler warning #612

> CC (gcc) [L libsrdb1.so.1.0]    db_ut.o
> In file included from /usr/include/time.h:27:0,
>                  from db_ut.c:50:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
Victor Seva 9 lat temu
rodzic
commit
09470aed71
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      lib/srdb1/db_ut.c

+ 1 - 0
lib/srdb1/db_ut.c

@@ -43,6 +43,7 @@
 	#define _BSD_SOURCE 1              /* needed on linux to "fix" the effect
 										* of the above define on
 										* features.h/unistd.h syscall() */
+	#define _DEFAULT_SOURCE 1         /* _BSD_SOURCE is deprecated */
 #else
 	#define _XOPEN_SOURCE_EXTENDED 1   /* solaris */
 #endif