If LINT code path uses memcpy, it should also include string.h.

This commit is contained in:
joerg 2014-08-10 17:55:08 +00:00
parent 7c0cdb9457
commit 76ef534724
3 changed files with 15 additions and 8 deletions

View File

@ -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 <sys/cdefs.h>
#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 <compat/sys/time.h>
#include <sys/sem.h>
#include <compat/sys/sem.h>
#ifdef __lint__
#include <string.h>
#endif
__warn_references(__semctl13,
"warning: reference to compatibility __semctl13(); include <sys/sem.h> to generate correct reference")

View File

@ -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 <sys/cdefs.h>
#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 <sys/null.h>
#include <compat/sys/sem.h>
#include <stdarg.h>
#ifdef __lint__
#include <string.h>
#endif
int
semctl(int semid, int semnum, int cmd, ...)

View File

@ -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 <sys/cdefs.h>
#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 <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <stdarg.h>
#ifdef __lint__
#include <string.h>
#endif
/* The kernel version [... == union semun *] */
int ____semctl50(int, int, int, ...);