Protect all BSD extensions with _BSD_SOURCE

* Do not define the symbols by default, as they are not in the default
libraries.
* Adjust jamfiles of all code using BSD extensions to define
_BSD_SOURCE.
* This makes Haiku slightly more compliant to standard C/POSIX.
This commit is contained in:
Adrien Destugues
2015-04-16 07:33:06 +02:00
parent e2ceb857d4
commit 091a80aeed
41 changed files with 217 additions and 7 deletions
+8
View File
@@ -37,6 +37,10 @@
#ifndef _PATHS_H_
#define _PATHS_H_
#ifdef _BSD_SOURCE
#include <sys/cdefs.h>
/* Default search path. */
@@ -136,4 +140,8 @@ __END_DECLS
#define _PATH_WALL "/rescue/wall"
#endif /* RESCUE */
#endif
#endif /* !_PATHS_H_ */