summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 16:23:58 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 16:24:03 +0200
commitdf1d693b03702bb825b1570bcd67a0bb590978d1 (patch)
tree471198d28ddbaa5a8964bf661474242205d987a4
parent19709152f2a4d43de0d1c93b2a231f1464de3b24 (diff)
Include fmacros.h to make sure strerror_p is defined on Linux
-rw-r--r--Makefile2
-rw-r--r--hiredis.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 13c12b6..8ba84e4 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ all: ${DYLIBNAME} ${BINS}
net.o: net.c fmacros.h net.h hiredis.h
async.o: async.c async.h hiredis.h sds.h util.h dict.c dict.h
example.o: example.c hiredis.h
-hiredis.o: hiredis.c hiredis.h net.h sds.h util.h
+hiredis.o: hiredis.c fmacros.h hiredis.h net.h sds.h util.h
sds.o: sds.c sds.h
test.o: test.c hiredis.h
diff --git a/hiredis.c b/hiredis.c
index 877b078..b03f1d1 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -29,6 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#include "fmacros.h"
#include <string.h>
#include <stdlib.h>
#include <unistd.h>