linux: Define feature macros to get required functions.

This is needed to build with -std=c99.
This commit is contained in:
Martin Ling 2014-08-24 13:34:33 +01:00
parent 7890cef6cf
commit c51b846eee
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef __linux__
#define _BSD_SOURCE // for timeradd, timersub, timercmp
#define _XOPEN_SOURCE 700 // for readlinkat
#endif
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>