diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-07-26 00:11:56 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-07-26 00:16:07 +0200 |
commit | 02450385adc79578ac67c8ebb6d4417df69377b1 (patch) | |
tree | d425df9f5865f66423b3491433ffca4e307973d2 /ax25ipd/ax25ipd.h | |
parent | 11fff636f92341a2f73b3fd3868c7f95da625df9 (diff) |
ax25ipd: Cleanup header file inclusion.
We were including way too many system header files, some even multiple
times and it wasn't immediately visible. Clean this.
This also drops the definitions of __USE_XOPEN which never had the desired
effect with glibc.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd/ax25ipd.h')
-rw-r--r-- | ax25ipd/ax25ipd.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/ax25ipd/ax25ipd.h b/ax25ipd/ax25ipd.h index cb48437..91314c4 100644 --- a/ax25ipd/ax25ipd.h +++ b/ax25ipd/ax25ipd.h @@ -40,35 +40,7 @@ #define IPPROTO_AX25 93 #define DEFAULT_UDP_PORT 10093 -/* local includes */ -#include "../pathnames.h" - -/* system includes */ -#include <ctype.h> -#include <errno.h> -#include <fcntl.h> -#include <memory.h> -#include <netdb.h> -#include <setjmp.h> -#include <signal.h> -#include <stdio.h> -#define __USE_XOPEN -#include <stdlib.h> -#include <string.h> -#include <unistd.h> -#include <limits.h> -#include <arpa/inet.h> -#include <netinet/in.h> -#include <netinet/in_systm.h> -#include <netinet/ip.h> -#include <netinet/ip_icmp.h> -#include <sys/ioctl.h> -#include <sys/socket.h> -#include <termio.h> -#include <sys/termios.h> -#include <sys/time.h> -#include <sys/types.h> -#include <netax25/daemon.h> +#include <limits.h> extern int udp_mode; /* true if we need a UDP socket */ extern int ip_mode; /* true if we need the raw IP socket */ |