git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app/test: fix build without librte_cmdline
[dpdk.git]
/
lib
/
librte_cmdline
/
cmdline_parse_ipaddr.c
diff --git
a/lib/librte_cmdline/cmdline_parse_ipaddr.c
b/lib/librte_cmdline/cmdline_parse_ipaddr.c
index
4b4ce75
..
2861fc7
100644
(file)
--- a/
lib/librte_cmdline/cmdline_parse_ipaddr.c
+++ b/
lib/librte_cmdline/cmdline_parse_ipaddr.c
@@
-1,7
+1,7
@@
/*-
* BSD LICENSE
*
/*-
* BSD LICENSE
*
- * Copyright(c) 2010-201
3
Intel Corporation. All rights reserved.
+ * Copyright(c) 2010-201
4
Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@
-87,7
+87,11
@@
#include <errno.h>
#include <netinet/in.h>
#ifndef __linux__
#include <errno.h>
#include <netinet/in.h>
#ifndef __linux__
+#ifndef __FreeBSD__
#include <net/socket.h>
#include <net/socket.h>
+#else
+#include <sys/socket.h>
+#endif
#endif
#include <rte_string_fns.h>
#endif
#include <rte_string_fns.h>