diff mbox series

[17/25] libnfs: fix compilation warning for inet_tons

Message ID 20220209222610.438470-18-mcgrof@kernel.org (mailing list archive)
State New, archived
Headers show
Series dbench: fix compile warnings and update a bit | expand

Commit Message

Luis Chamberlain Feb. 9, 2022, 10:26 p.m. UTC
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
 libnfs.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/libnfs.c b/libnfs.c
index 1600701..50f914e 100644
--- a/libnfs.c
+++ b/libnfs.c
@@ -27,6 +27,10 @@ 
 #include <sys/stat.h>
 #include <fcntl.h>
 
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
 #define discard_const(ptr) ((void *)((intptr_t)(ptr)))
 
 typedef struct _data_t {