all: Compile globally without _GNU_SOURCE, define _BSD_SOURCE or _GNU_SOURCE where needed

This commit is contained in:
Pali Rohár committed 2016-12-06 23:10:58 +01:00
1 parent 676da47751
commit 5e79d651ca
4 files changed
+17 -1

No files matched your search

+6
View File
@@ -16,6 +16,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef __linux__
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#endif
#endif
#include <fcntl.h>
#include <libgen.h>
#include <unistd.h>