Include errno.h rather than sys/errno.h

This commit is contained in:
wb2osz 2018-11-23 16:33:45 -05:00
parent da0a33ef2a
commit 4590e21934
8 changed files with 7 additions and 15 deletions

View File

@ -69,7 +69,7 @@
#include <netinet/tcp.h>
#include <fcntl.h>
#include <termios.h>
#include <sys/errno.h>
#include <errno.h>
#endif
#include <unistd.h>

6
kiss.c
View File

@ -115,12 +115,8 @@ void kisspt_send_rec_packet (int chan, int kiss_cmd, unsigned char *fbuf, int f
#include <sys/select.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#ifdef __OpenBSD__
#include <errno.h>
#else
#include <sys/errno.h>
#endif
#include "tq.h"
#include "ax25_pad.h"

View File

@ -106,11 +106,7 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#ifdef __OpenBSD__
#include <errno.h>
#else
#include <sys/errno.h>
#endif
#endif
#include <unistd.h>

View File

@ -46,7 +46,7 @@
#else
#include <stdlib.h>
#include <sys/errno.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>

View File

@ -44,7 +44,7 @@
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <errno.h>
#endif

2
sock.c
View File

@ -54,7 +54,7 @@
#include <netinet/tcp.h>
#include <fcntl.h>
//#include <termios.h>
#include <sys/errno.h>
#include <errno.h>
#endif

View File

@ -59,7 +59,7 @@
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/errno.h>
#include <errno.h>
#endif
#include <unistd.h>

View File

@ -41,7 +41,7 @@
#else
#include <stdlib.h>
#include <ctype.h>
#include <sys/errno.h>
#include <errno.h>
#endif
#include <assert.h>