aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2010-06-18 22:37:42 -0700
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-19 20:03:15 +0200
commitfdd7b566ecdc174907f38d9389b28ba842d2b4bf (patch)
tree38e5f9a61da8c6ed5155d3542fd0d56aaf157714 /networking
parenteb08b6ed5cc7bb764658cd7a3b829e2b3aac4abc (diff)
downloadbusybox-w32-fdd7b566ecdc174907f38d9389b28ba842d2b4bf.tar.gz
busybox-w32-fdd7b566ecdc174907f38d9389b28ba842d2b4bf.tar.bz2
busybox-w32-fdd7b566ecdc174907f38d9389b28ba842d2b4bf.zip
A few minor portability improvements
Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/ipcalc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ipcalc.c b/networking/ipcalc.c
index 17b216354..87f31fdb5 100644
--- a/networking/ipcalc.c
+++ b/networking/ipcalc.c
@@ -12,11 +12,11 @@
12 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 12 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
13 */ 13 */
14 14
15#include "libbb.h"
16
15#include <sys/socket.h> 17#include <sys/socket.h>
16#include <arpa/inet.h> 18#include <arpa/inet.h>
17 19
18#include "libbb.h"
19
20#define CLASS_A_NETMASK ntohl(0xFF000000) 20#define CLASS_A_NETMASK ntohl(0xFF000000)
21#define CLASS_B_NETMASK ntohl(0xFFFF0000) 21#define CLASS_B_NETMASK ntohl(0xFFFF0000)
22#define CLASS_C_NETMASK ntohl(0xFFFFFF00) 22#define CLASS_C_NETMASK ntohl(0xFFFFFF00)