From c7f9c060e4dbca0a9ebe1eab63e1e64c317e3349 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 26 Dec 2013 16:57:21 +0100 Subject: build: fix shm detection on OpenBSD Fixes #427 --- old-configure | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'old-configure') diff --git a/old-configure b/old-configure index f4baba7ee1..5a7f1880d7 100755 --- a/old-configure +++ b/old-configure @@ -1504,8 +1504,19 @@ echores "$_termios" echocheck "shm" if test "$_shm" = auto ; then + cat > $TMPC << EOF +#include +#include +#include +int main(void) { + shmget(0, 0, 0); + shmat(0, 0, 0); + shmctl(0, 0, 0); + return 0; +} +EOF _shm=no - statement_check sys/shm.h 'shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0)' && _shm=yes + cc_check && _shm=yes fi if test "$_shm" = yes ; then def_shm='#define HAVE_SHM 1' -- cgit v1.2.3