瀏覽代碼

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 年之前
父節點
當前提交
09470aed71
共有 1 個文件被更改,包括 1 次插入0 次删除
  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