uucp: patch code for GCC 14 compilation

The original code uses `size_t` for two variables that hold the sizes of
structs, but the function they get passed to requires pointer to
`socklen_t`, which is type `unsigned int *`. As far as I can tell, using
`socklen_t` has been the standard for at least a couple decades. Stricter
GCC 14 rules made this code not compile

langsjo 7f1aeb03 595abd52

+30
+4
pkgs/by-name/uu/uucp/package.nix
··· 28 --replace-fail '(void) exit (0)' '(void) (0)' 29 ''; 30 31 # Regenerate `configure`; the checked in version was generated in 2002 and 32 # contains snippets like `main(){return(0);}` that modern compilers dislike. 33 nativeBuildInputs = [ autoreconfHook ];
··· 28 --replace-fail '(void) exit (0)' '(void) (0)' 29 ''; 30 31 + patches = [ 32 + ./socklen_t.patch 33 + ]; 34 + 35 # Regenerate `configure`; the checked in version was generated in 2002 and 36 # contains snippets like `main(){return(0);}` that modern compilers dislike. 37 nativeBuildInputs = [ autoreconfHook ];
+26
pkgs/by-name/uu/uucp/socklen_t.patch
···
··· 1 + diff --git a/unix/portnm.c b/unix/portnm.c 2 + index 9eda4ab..019337c 100644 3 + --- a/unix/portnm.c 4 + +++ b/unix/portnm.c 5 + @@ -32,7 +32,7 @@ zsysdep_port_name (ftcp_port) 6 + 7 + #if HAVE_TCP 8 + { 9 + - size_t clen; 10 + + socklen_t clen; 11 + struct sockaddr s; 12 + 13 + clen = sizeof (struct sockaddr); 14 + diff --git a/unix/tcp.c b/unix/tcp.c 15 + index 1bbcec7..af52cab 100644 16 + --- a/unix/tcp.c 17 + +++ b/unix/tcp.c 18 + @@ -395,7 +395,7 @@ ftcp_open (qconn, ibaud, fwait, fuser) 19 + while (! FGOT_SIGNAL ()) 20 + { 21 + sockaddr_storage speer; 22 + - size_t clen; 23 + + socklen_t clen; 24 + int onew; 25 + pid_t ipid; 26 +