From c849ad1de47452f055e2929cbe00d863cdd80ffd Mon Sep 17 00:00:00 2001 From: wiire Date: Thu, 13 Aug 2015 15:26:24 +0200 Subject: [PATCH] Fixed redefinition warnings on some compilers --- src/Makefile | 2 +- src/random_r.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index e9de2e5..87fa701 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ CCFLAGS = -std=c99 -O3 -Wno-deprecated-declarations -LDFLAGS = -lcrypto -I../include +LDFLAGS = -lcrypto TARGET = pixiewps SOURCE = $(TARGET).c random_r.c diff --git a/src/random_r.c b/src/random_r.c index 6564d7f..881d7fa 100644 --- a/src/random_r.c +++ b/src/random_r.c @@ -29,6 +29,12 @@ #include /* #include */ +#ifdef __MACH__ +# include "../include/features.h" +#else +# include +#endif /* __MACH__ */ + #include "random_r.h" /* An improved random number generation package. In addition to the standard