From 24a6b2f3be2b0d25646df8de37abce10b485de18 Mon Sep 17 00:00:00 2001 From: "git@daemon.de" Date: Sun, 2 Aug 2015 15:44:15 +0200 Subject: [PATCH] fixed compile under freebsd --- Makefile | 2 +- dictfile.h | 2 ++ tossing.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 60c1c4d..6b7bfd2 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ DICTFILE = /usr/share/dict/american-english all: $(DST) $(DST): $(OBJS) - gcc $(OBJS) -o $(DST) + gcc -DDICTFILE=$(DICTFILE) $(OBJS) -o $(DST) %.o: %.c gcc -c $(CFLAGS) -DDICTFILE=$(DICTFILE) $*.c -o $*.o diff --git a/dictfile.h b/dictfile.h index e48aa12..c42eff5 100644 --- a/dictfile.h +++ b/dictfile.h @@ -22,6 +22,8 @@ #ifndef HAVE_DICTFILE_H #define HAVE_DICTFILE_H +#define _WITH_GETLINE + #include #include #include diff --git a/tossing.h b/tossing.h index eca0351..4531c15 100644 --- a/tossing.h +++ b/tossing.h @@ -22,6 +22,8 @@ #ifndef HAVE_TOSSING_H #define HAVE_TOSSING_H +#define _WITH_GETLINE + #include #include #include