mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

Remove macOS stuff. Upstream has fixed it in the same way. Add SOL_TCP define. Taken from elsewhere in the code. Refreshed patches. Signed-off-by: Rosen Penev <rosenp@gmail.com>
14 lines
313 B
Diff
14 lines
313 B
Diff
--- a/communicate.c
|
|
+++ b/communicate.c
|
|
@@ -441,6 +441,10 @@ void semaphore_down(){
|
|
|
|
#else /* FAKEROOT_FAKENET */
|
|
|
|
+#ifndef SOL_TCP
|
|
+# define SOL_TCP 6 /* this should probably be done with getprotoent */
|
|
+#endif
|
|
+
|
|
static struct sockaddr *get_addr(void)
|
|
{
|
|
static struct sockaddr_in addr = { 0, 0, { 0 } };
|