Skip site navigation (1) Skip section navigation (2)

Current CVS: compilation error

From: Teodor Sigaev <teodor(at)stack(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Current CVS: compilation error
Date: 2001-10-01 10:20:33
Message-ID: 3BB84371.5080102@stack.net (view raw or flat)
Thread:
Lists: pgsql-hackers
OS: FreeBSD4.3

Diagnostic:
gcc -g -Wall -Wmissing-prototypes -Wmissing-declarations 
-I../../../../src/include   -c -o spin.o spin.c
In file included from /usr/include/sys/sem.h:13,
                  from spin.c:26:
/usr/include/sys/ipc.h:54: syntax error before `ushort'
/usr/include/sys/ipc.h:95: syntax error before `ftok'
/usr/include/sys/ipc.h:95: warning: data definition has no type or storage class
In file included from spin.c:26:
/usr/include/sys/sem.h:20: syntax error before `u_short'
/usr/include/sys/sem.h:23: syntax error before `time_t'
/usr/include/sys/sem.h:34: syntax error before `u_short'
/usr/include/sys/sem.h:48: syntax error before `u_short'
/usr/include/sys/sem.h:103: syntax error before `int'

Patch:
*** src/backend/storage/lmgr/spin.c.orig        Mon Oct  1 14:13:01 2001
--- src/backend/storage/lmgr/spin.c     Mon Oct  1 14:16:15 2001
***************
*** 23,28 ****
--- 23,29 ----

   #include <errno.h>
   #ifdef HAVE_SYS_SEM_H
+ #include <sys/types.h>
   #include <sys/sem.h>
   #endif

-- 
Teodor Sigaev
teodor(at)stack(dot)net



Responses

pgsql-hackers by date

Next:From: Karel ZakDate: 2001-10-01 10:26:12
Subject: HISTORY file
Previous:From: Janardhana ReddyDate: 2001-10-01 09:57:04
Subject: Re: PERFORMANCE IMPROVEMENT by mapping WAL FILES

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group