Don't depend on <machine/cpufunc.h> including <sys/types.h>. In fact,
don't include this kernel-only header at all, since we don't need it.
This commit is contained in:
parent
72ef571982
commit
61f3323058
@ -28,14 +28,12 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: sap_tables.c,v 1.3 1997/02/22 16:01:01 peter Exp $
|
||||
*/
|
||||
|
||||
#include "defs.h"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
/* XXX I thought that this should work! #include <sys/systm.h> */
|
||||
#include <machine/cpufunc.h>
|
||||
|
||||
#define FIXLEN(s) { if ((s)->sa_len == 0) (s)->sa_len = sizeof (*(s));}
|
||||
|
||||
@ -323,4 +321,3 @@ sap_delete(struct sap_entry *sap)
|
||||
remque(sap);
|
||||
free(sap);
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: tables.c,v 1.4 1997/02/22 16:01:03 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -47,8 +47,6 @@ static char sccsid[] = "@(#)tables.c 8.1 (Berkeley) 6/5/93";
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
/* XXX I thought that this should work! #include <sys/systm.h> */
|
||||
#include <machine/cpufunc.h>
|
||||
|
||||
#ifndef DEBUG
|
||||
#define DEBUG 0
|
||||
@ -467,4 +465,3 @@ rtioctl(action, ort)
|
||||
return write(r, (char *)&w, rtm.rtm_msglen);
|
||||
#endif /* RTM_ADD */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user