more portability

This commit is contained in:
cathugger 2017-10-06 01:21:00 +00:00
parent 0428ae301f
commit a203269976
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,6 @@
CC= @CC@
CSTD= @CSTD@ -Wall -D_POSIX_C_SOURCE=200112L
CSTD= @CSTD@ -Wall
CFLAGS= $(CSTD) @CFLAGS@ -DED25519_@ED25519IMPL@ @MYDEFS@
ASFLAGS=
LDFLAGS= @NOPIE@

4
main.c
View file

@ -1,3 +1,7 @@
#ifdef __linux__
#define _POSIX_C_SOURCE 200112L
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>