projects
/
tunudptotcp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c36280e
)
Correct includes to compile on modern hosts
author
Matt Corallo
<git@bluematt.me>
Tue, 15 Mar 2022 02:57:22 +0000
(
02:57
+0000)
committer
Matt Corallo
<git@bluematt.me>
Tue, 15 Mar 2022 02:57:22 +0000
(
02:57
+0000)
main.cpp
patch
|
blob
|
history
diff --git
a/main.cpp
b/main.cpp
index 9f0173f3bb5e125ddfe040fa5537957ec46afd0f..1bc49909ce3f009fd86b39161bd3b53c3342299d 100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-1,6
+1,5
@@
#include <fcntl.h>
#include <string.h>
-#include <stropts.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/socket.h>
@@
-9,6
+8,7
@@
#include <errno.h>
#include <arpa/inet.h>
#include <stdint.h>
+#include <stdlib.h>
#include <linux/if.h>
#include <linux/if_tun.h>
#include <assert.h>
@@
-16,6
+16,7
@@
#include <atomic>
#include <chrono>
#include <thread>
+#include <string>
#if __has_include(<sys/random.h>)
#include <sys/random.h>