Use the non-overlayed libbsd headers when we need our own definitions

This commit is contained in:
Guillem Jover 2015-12-12 14:27:12 +01:00
parent 290a1ce8f2
commit 48ac79b188
2 changed files with 8 additions and 0 deletions

View File

@ -34,7 +34,11 @@
#ifndef LIBBSD_ERR_H
#define LIBBSD_ERR_H
#ifdef LIBBSD_OVERLAY
#include <sys/cdefs.h>
#else
#include <bsd/sys/cdefs.h>
#endif
#include <stdarg.h>

View File

@ -34,7 +34,11 @@
#ifndef LIBBSD_UNISTD_H
#define LIBBSD_UNISTD_H
#ifdef LIBBSD_OVERLAY
#include <sys/cdefs.h>
#else
#include <bsd/sys/cdefs.h>
#endif
#include <sys/stat.h>
#ifndef S_ISTXT