Fixed redefinition warnings on some compilers

This commit is contained in:
wiire 2015-08-13 15:26:24 +02:00
parent 617193e404
commit c849ad1de4
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,5 @@
CCFLAGS = -std=c99 -O3 -Wno-deprecated-declarations CCFLAGS = -std=c99 -O3 -Wno-deprecated-declarations
LDFLAGS = -lcrypto -I../include LDFLAGS = -lcrypto
TARGET = pixiewps TARGET = pixiewps
SOURCE = $(TARGET).c random_r.c SOURCE = $(TARGET).c random_r.c

View File

@ -29,6 +29,12 @@
#include <unistd.h> #include <unistd.h>
/* #include <errno.h> */ /* #include <errno.h> */
#ifdef __MACH__
# include "../include/features.h"
#else
# include <features.h>
#endif /* __MACH__ */
#include "random_r.h" #include "random_r.h"
/* An improved random number generation package. In addition to the standard /* An improved random number generation package. In addition to the standard