Use _DEFAULT_SOURCE instead of _BSD_SOURCE, since _BSD_SOURCE is deprecated.

This commit is contained in:
Aaron Hamilton
2015-01-21 23:43:45 +00:00
parent 8773541f35
commit cf22aa9ff5
9 changed files with 9 additions and 9 deletions

View File

@@ -17,7 +17,7 @@
*/ */
#define _POSIX_C_SOURCE 200809L // for strdup and struct timespec #define _POSIX_C_SOURCE 200809L // for strdup and struct timespec
#define _BSD_SOURCE // for strdup on old systems #define _DEFAULT_SOURCE // for strdup on old systems
#define _GNU_SOURCE // for getline on old systems #define _GNU_SOURCE // for getline on old systems
#define FUSE_USE_VERSION 30 #define FUSE_USE_VERSION 30

View File

@@ -18,7 +18,7 @@
*/ */
#define _POSIX_C_SOURCE 200809L // for strdup #define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems #define _DEFAULT_SOURCE // for strdup on old systems
#include <jansson.h> #include <jansson.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -18,7 +18,7 @@
*/ */
#define _POSIX_C_SOURCE 200809L // for strdup #define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems #define _DEFAULT_SOURCE // for strdup on old systems
#include <jansson.h> #include <jansson.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -18,7 +18,7 @@
*/ */
#define _POSIX_C_SOURCE 200809L // for strdup #define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems #define _DEFAULT_SOURCE // for strdup on old systems
#include <jansson.h> #include <jansson.h>
#include <stdint.h> #include <stdint.h>

View File

@@ -18,7 +18,7 @@
*/ */
#define _POSIX_C_SOURCE 200809L // for strdup #define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems #define _DEFAULT_SOURCE // for strdup on old systems
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>

View File

@@ -18,7 +18,7 @@
*/ */
#define _POSIX_C_SOURCE 200809L // for strdup #define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems #define _DEFAULT_SOURCE // for strdup on old systems
#include <openssl/md5.h> #include <openssl/md5.h>
#include <openssl/sha.h> #include <openssl/sha.h>

View File

@@ -17,7 +17,7 @@
*/ */
#define _POSIX_C_SOURCE 200809L // for strdup #define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems #define _DEFAULT_SOURCE // for strdup on old systems
#include <stdint.h> #include <stdint.h>
#include <openssl/sha.h> #include <openssl/sha.h>

View File

@@ -19,7 +19,7 @@
#ifdef __linux #ifdef __linux
#define _POSIX_C_SOURCE 200809L // for strdup and getline #define _POSIX_C_SOURCE 200809L // for strdup and getline
#define _BSD_SOURCE // for strsep #define _DEFAULT_SOURCE // for strsep
#else #else
#define _WITH_GETLINE // on freebsd for getline #define _WITH_GETLINE // on freebsd for getline
#endif #endif

View File

@@ -17,7 +17,7 @@
*/ */
#define _POSIX_C_SOURCE 200809L // for strdup #define _POSIX_C_SOURCE 200809L // for strdup
#define _BSD_SOURCE // for strdup on old systems #define _DEFAULT_SOURCE // for strdup on old systems
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>