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@stack.net



Mon, 01 Oct 2001 14:20:33 +0400
Teodor Sigaev <teodor@stack.net>
Current CVS: compilation error

Patch applied.  Thanks.

> 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@stack.net
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
> http://www.postgresql.org/users-lounge/docs/faq.html
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Mon, 1 Oct 2001 13:52:28 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: Current CVS: compilation error