mirror of
https://codeberg.org/scip/diceware.git
synced 2025-12-16 10:20:57 +01:00
fixed compile under freebsd
This commit is contained in:
2
Makefile
2
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
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#ifndef HAVE_DICTFILE_H
|
||||
#define HAVE_DICTFILE_H
|
||||
|
||||
#define _WITH_GETLINE
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
Reference in New Issue
Block a user