Skip to content

Commit 3573e54

Browse files
authored
Fix build on FreeBSD (sempahore union support). (#901)
1 parent 430e632 commit 3573e54

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/bin/pg_autoctl/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ DEFAULT_CFLAGS += -Werror=implicit-function-declaration
4141
DEFAULT_CFLAGS += -Werror=return-type
4242
DEFAULT_CFLAGS += -Wno-declaration-after-statement
4343

44+
# Needed for FreeBSD
45+
DEFAULT_CFLAGS += -D_WANT_SEMUN
46+
4447
# Needed for OSX
4548
DEFAULT_CFLAGS += -Wno-missing-braces
4649
DEFAULT_CFLAGS += $(COMMON_LIBS)

0 commit comments

Comments
 (0)