Merge pull request #1 from xorgy/default-source-instead-of-bsd-source

Use _DEFAULT_SOURCE instead of _BSD_SOURCE, as _BSD_SOURCE is deprecated.
This commit is contained in:
TragicWarrior
2015-01-21 17:52:16 -06:00
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 _BSD_SOURCE // for strdup on old systems
#define _DEFAULT_SOURCE // for strdup on old systems
#define _GNU_SOURCE // for getline on old systems
#define FUSE_USE_VERSION 30

View File

@@ -18,7 +18,7 @@
*/
#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 <stdlib.h>

View File

@@ -18,7 +18,7 @@
*/
#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 <stdlib.h>

View File

@@ -18,7 +18,7 @@
*/
#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 <stdint.h>

View File

@@ -18,7 +18,7 @@
*/
#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 <stdio.h>

View File

@@ -18,7 +18,7 @@
*/
#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/sha.h>

View File

@@ -17,7 +17,7 @@
*/
#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 <openssl/sha.h>

View File

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

View File

@@ -17,7 +17,7 @@
*/
#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 <stdlib.h>