forked from Lainports/freebsd-ports
The NetBSD's constant database (cdb) library provides a space efficient key-value database based on perfect hashing, thus guaranteeing the O(1) lookup time. The database preserves the key order. WWW: https://github.com/rmind/libcdb While be used by npf port
14 lines
327 B
Text
14 lines
327 B
Text
--- Makefile.orig 2018-06-11 23:57:47 UTC
|
|
+++ Makefile
|
|
@@ -4,8 +4,11 @@
|
|
|
|
PROJ= cdb
|
|
|
|
+UNAME:= $(shell uname)
|
|
CFLAGS+= -std=c11 -O2 -g -Wall -Wextra -Werror
|
|
+ifneq ($(UNAME), FreeBSD)
|
|
CFLAGS+= -D_POSIX_C_SOURCE=200809L
|
|
+endif
|
|
CFLAGS+= -D_GNU_SOURCE -D_DEFAULT_SOURCE
|
|
CFLAGS+= -I. -Wno-unused-parameter -D__RCSID\(x\)=
|
|
|