mirror of
https://codeberg.org/scip/diceware.git
synced 2025-12-16 18:30:58 +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)
|
all: $(DST)
|
||||||
|
|
||||||
$(DST): $(OBJS)
|
$(DST): $(OBJS)
|
||||||
gcc $(OBJS) -o $(DST)
|
gcc -DDICTFILE=$(DICTFILE) $(OBJS) -o $(DST)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
gcc -c $(CFLAGS) -DDICTFILE=$(DICTFILE) $*.c -o $*.o
|
gcc -c $(CFLAGS) -DDICTFILE=$(DICTFILE) $*.c -o $*.o
|
||||||
|
|||||||
@@ -22,6 +22,8 @@
|
|||||||
#ifndef HAVE_DICTFILE_H
|
#ifndef HAVE_DICTFILE_H
|
||||||
#define HAVE_DICTFILE_H
|
#define HAVE_DICTFILE_H
|
||||||
|
|
||||||
|
#define _WITH_GETLINE
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user