fixed compile under freebsd

This commit is contained in:
git@daemon.de
2015-08-02 15:44:15 +02:00
parent 3a83b58a7e
commit 24a6b2f3be
3 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -22,6 +22,8 @@
#ifndef HAVE_DICTFILE_H
#define HAVE_DICTFILE_H
#define _WITH_GETLINE
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

View File

@@ -22,6 +22,8 @@
#ifndef HAVE_TOSSING_H
#define HAVE_TOSSING_H
#define _WITH_GETLINE
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>