xref: /netbsd-src/usr.sbin/mopd/common/os.h (revision cdd21bd307854e72bdd5f364023525b60c7c4218)
1*cdd21bd3Schristos /*	$NetBSD: os.h,v 1.7 2016/06/08 01:11:49 christos Exp $	*/
2fcab4c33Sthorpej 
3ed137f7cScjs /*
4ed137f7cScjs  * Copyright (c) 1994-95 Mats O Jansson.  All rights reserved.
5ed137f7cScjs  *
6ed137f7cScjs  * Redistribution and use in source and binary forms, with or without
7ed137f7cScjs  * modification, are permitted provided that the following conditions
8ed137f7cScjs  * are met:
9ed137f7cScjs  * 1. Redistributions of source code must retain the above copyright
10ed137f7cScjs  *    notice, this list of conditions and the following disclaimer.
11ed137f7cScjs  * 2. Redistributions in binary form must reproduce the above copyright
12ed137f7cScjs  *    notice, this list of conditions and the following disclaimer in the
13ed137f7cScjs  *    documentation and/or other materials provided with the distribution.
14ed137f7cScjs  *
15ed137f7cScjs  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16ed137f7cScjs  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17ed137f7cScjs  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18ed137f7cScjs  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19ed137f7cScjs  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20ed137f7cScjs  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21ed137f7cScjs  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22ed137f7cScjs  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23ed137f7cScjs  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24ed137f7cScjs  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25ed137f7cScjs  *
26*cdd21bd3Schristos  *	$NetBSD: os.h,v 1.7 2016/06/08 01:11:49 christos Exp $
27ed137f7cScjs  *
28ed137f7cScjs  */
29ed137f7cScjs 
30ed137f7cScjs #ifndef _OS_H_
31ed137f7cScjs #define _OS_H_
32ed137f7cScjs 
33ed137f7cScjs #include <sys/types.h>
3407ed8910Slukem #include <sys/ioctl.h>
35ed137f7cScjs #include <sys/socket.h>
3607ed8910Slukem #include <sys/stat.h>
3707ed8910Slukem #include <sys/time.h>
3807ed8910Slukem 
39ed137f7cScjs #include <net/if.h>
40*cdd21bd3Schristos #include <netinet/in.h>
41*cdd21bd3Schristos #ifdef __NetBSD__
42ed137f7cScjs #include <net/if_dl.h>
43ed137f7cScjs #include <net/if_types.h>
44*cdd21bd3Schristos #endif
4507ed8910Slukem 
4607ed8910Slukem #include <err.h>
4707ed8910Slukem #include <errno.h>
48ed137f7cScjs #include <fcntl.h>
4907ed8910Slukem #include <signal.h>
5007ed8910Slukem #include <stdio.h>
5107ed8910Slukem #include <stdlib.h>
5207ed8910Slukem #include <string.h>
5307ed8910Slukem #include <syslog.h>
5407ed8910Slukem #include <time.h>
55ed137f7cScjs #include <unistd.h>
56757e4585Sitojun #include <ifaddrs.h>
57ed137f7cScjs 
58ed137f7cScjs #define  DEV_NEW_CONF
59ed137f7cScjs 
60d594ce93Scgd #endif /* _OS_H_ */
61