File: remove-saddr_t-typedef.patch

package info (click to toggle)
virtuoso-opensource 7.2.5.1%2Bdfsg1-0.3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 285,240 kB
  • sloc: ansic: 641,220; sql: 490,413; xml: 269,570; java: 83,893; javascript: 79,900; cpp: 36,927; sh: 31,653; cs: 25,702; php: 12,690; yacc: 10,227; lex: 7,601; makefile: 7,129; jsp: 4,523; awk: 1,697; perl: 1,013; ruby: 1,003; python: 326
file content (46 lines) | stat: -rw-r--r-- 1,178 bytes parent folder | download | duplicates (3)
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
44
45
46
Description: Remove the saddr_t typedef
 This clashes with system headers on s390x.
Author: Colin Watson <cjwatson@ubuntu.com>
Bug-Debian: https://bugs.debian.org/805157
Forwarded: no
Last-Update: 2015-12-24

--- a/libsrc/Dk/Dksestcp.c
+++ b/libsrc/Dk/Dksestcp.c
@@ -587,7 +587,7 @@ tcpses_accept (session_t * ses, session_
 {
   int rc;
   int new_socket;
-  socklen_t addrlen = sizeof (saddr_t);
+  socklen_t addrlen = sizeof (struct sockaddr);
 
   dbg_printf_1 (("tcpses_accept."));
 
@@ -2581,7 +2581,7 @@ unixses_listen (session_t * ses)
       return (SER_CNTRL);
     }
 
-  if ((rc = bind (s, (saddr_t *) p_addr, sizeof (saddrun_t))) < 0)
+  if ((rc = bind (s, (struct sockaddr *) p_addr, sizeof (saddrun_t))) < 0)
     {
 
       test_eintr (ses, rc, errno);
--- a/libsrc/Dk/Dksestcpint.h
+++ b/libsrc/Dk/Dksestcpint.h
@@ -44,7 +44,6 @@
 
 
 typedef struct sockaddr_in saddrin_t;
-typedef struct sockaddr saddr_t;
 #ifdef COM_UNIXSOCK
 typedef struct sockaddr_un saddrun_t;
 #endif
@@ -55,7 +54,7 @@ typedef union
 #ifdef COM_UNIXSOCK
   saddrun_t 	u;
 #endif
-  saddr_t 	a;
+  struct sockaddr 	a;
 } usaddr_t;
 #define TCP_HOSTNAMELEN     100				   /* Something */