diff --git a/lib/libc/compat/sys/compat___semctl13.c b/lib/libc/compat/sys/compat___semctl13.c index c3eacf9d9f29..0d2b07849973 100644 --- a/lib/libc/compat/sys/compat___semctl13.c +++ b/lib/libc/compat/sys/compat___semctl13.c @@ -1,6 +1,4 @@ -/* $NetBSD: compat___semctl13.c,v 1.3 2011/01/31 22:51:39 christos Exp $ */ - -/* $NetBSD: compat___semctl13.c,v 1.3 2011/01/31 22:51:39 christos Exp $ */ +/* $NetBSD: compat___semctl13.c,v 1.4 2014/08/10 17:55:08 joerg Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -39,7 +37,7 @@ */ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: compat___semctl13.c,v 1.3 2011/01/31 22:51:39 christos Exp $"); +__RCSID("$NetBSD: compat___semctl13.c,v 1.4 2014/08/10 17:55:08 joerg Exp $"); #endif /* LIBC_SCCS and not lint */ #include "namespace.h" @@ -49,6 +47,9 @@ __RCSID("$NetBSD: compat___semctl13.c,v 1.3 2011/01/31 22:51:39 christos Exp $") #include #include #include +#ifdef __lint__ +#include +#endif __warn_references(__semctl13, "warning: reference to compatibility __semctl13(); include to generate correct reference") diff --git a/lib/libc/compat/sys/compat_semctl.c b/lib/libc/compat/sys/compat_semctl.c index 96b6ad01c4d4..a8055c24d73f 100644 --- a/lib/libc/compat/sys/compat_semctl.c +++ b/lib/libc/compat/sys/compat_semctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: compat_semctl.c,v 1.3 2011/01/31 22:51:39 christos Exp $ */ +/* $NetBSD: compat_semctl.c,v 1.4 2014/08/10 17:55:08 joerg Exp $ */ /* * Copyright (c) 1994, 1995 Christopher G. Demetriou @@ -36,7 +36,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: compat_semctl.c,v 1.3 2011/01/31 22:51:39 christos Exp $"); +__RCSID("$NetBSD: compat_semctl.c,v 1.4 2014/08/10 17:55:08 joerg Exp $"); #endif /* LIBC_SCCS and not lint */ #define __LIBC12_SOURCE__ @@ -46,6 +46,9 @@ __RCSID("$NetBSD: compat_semctl.c,v 1.3 2011/01/31 22:51:39 christos Exp $"); #include #include #include +#ifdef __lint__ +#include +#endif int semctl(int semid, int semnum, int cmd, ...) diff --git a/lib/libc/sys/semctl.c b/lib/libc/sys/semctl.c index 1f96563ca380..42cfeeea8b2b 100644 --- a/lib/libc/sys/semctl.c +++ b/lib/libc/sys/semctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: semctl.c,v 1.15 2009/01/16 00:02:57 christos Exp $ */ +/* $NetBSD: semctl.c,v 1.16 2014/08/10 17:55:09 joerg Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -30,13 +30,16 @@ */ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: semctl.c,v 1.15 2009/01/16 00:02:57 christos Exp $"); +__RCSID("$NetBSD: semctl.c,v 1.16 2014/08/10 17:55:09 joerg Exp $"); #endif /* LIBC_SCCS and not lint */ #include #include #include #include +#ifdef __lint__ +#include +#endif /* The kernel version [... == union semun *] */ int ____semctl50(int, int, int, ...);