Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build failure of -current/i386



On Tue 20 Jan 2009 at 20:35:08 +0100, Rhialto wrote:
>     compile  compat/sysv_ipc_50.o
> cc1: warnings being treated as errors
> /vol1/rhialto/cvs/src/sys/compat/common/sysv_ipc_50.c:80: warning: no 
> previous prototype for 'sysctl_kern_sysvipc50'

This seems to fix it (ifdef COMPAT_50 around the whole thing).
I must be the first to compile this without COMPAT_50 then, even though
it must mean it is not in GENERIC.

Index: sysv_ipc_50.c
===================================================================
RCS file: /cvsroot/src/sys/compat/common/sysv_ipc_50.c,v
retrieving revision 1.1
diff -u -r1.1 sysv_ipc_50.c
--- sysv_ipc_50.c       19 Jan 2009 19:39:41 -0000      1.1
+++ sysv_ipc_50.c       21 Jan 2009 21:35:38 -0000
@@ -75,6 +75,8 @@
  * Check for ipc permission
  */
 
+#ifdef COMPAT_50
+
 int
 sysctl_kern_sysvipc50(SYSCTLFN_ARGS)
 {
@@ -214,3 +216,5 @@
                free(bf, M_TEMP);
        return error;
 }
+
+#endif /* COMPAT_50 */

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert    -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl      -- Cetero censeo "authored" delendum esse.



Home | Main Index | Thread Index | Old Index