File: fix_glibc.patch

package info (click to toggle)
slang2 2.3.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,480 kB
  • sloc: ansic: 101,756; sh: 3,435; makefile: 1,046; pascal: 440
file content (43 lines) | stat: -rw-r--r-- 957 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Fixes needed so that functions are visible (ip_mreq,strtoll)
 Needed for glibc > 2.9
Last-Updated 2014-09-21
Forwarded: yes

--- a/modules/socket-module.c
+++ b/modules/socket-module.c
@@ -42,6 +42,15 @@
 
 #include <sys/types.h>
 
+/* struct in_mreq now hidden behind __USE_MISC.
+ *  Move up here; __USE_MISC needs to be after  types.h, etc
+ *  but before netdb.h
+ */
+#define __USE_MISC 1
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+
 #include <time.h>
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
@@ -76,9 +85,6 @@
 # include <sys/un.h>		       /* for AF_UNIX sockets */
 #endif
 
-#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
-#endif
 
 #ifdef HAVE_ARPA_INET_H
 # include <arpa/inet.h>
@@ -97,6 +103,8 @@
 static int SocketHerrnoError = -1;
 static int Socket_Type_Id = -1;
 
+struct ip_mreq group;
+
 typedef struct Socket_Type Socket_Type;
 typedef struct
 {