Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / dante / clang-osint-m4.patch
blob65281e22ea0e4cc15115c919437dfcdbd7696255
1 diff -ur a/osdep.m4 b/osdep.m4
2 --- a/osdep.m4 2017-01-18 09:11:20.000000000 -0500
3 +++ b/osdep.m4 2023-10-21 12:43:59.464797030 -0400
4 @@ -381,6 +381,7 @@
5 unset have_sa_len
6 AC_MSG_CHECKING([for sa_len in sockaddr])
7 AC_TRY_COMPILE([
8 +#include <stdint.h>
9 #include <sys/types.h>
10 #include <sys/socket.h>
11 ], [struct sockaddr sa;
12 @@ -397,12 +398,13 @@
13 unset sa_len_type_found
14 for type in uint8_t "unsigned char"; do
15 AC_TRY_COMPILE([
16 +#include <stdint.h>
17 #include <sys/types.h>
18 #include <sys/socket.h>], [
19 struct sockaddr sa;
20 $type *sa_len_ptr;
21 sa_len_ptr = &sa.sa_len;
22 -sa_len_ptr++; /* use to avoid warning/error */],
23 +(*sa_len_ptr)++; /* use to avoid warning/error */],
24 [AC_DEFINE_UNQUOTED(sa_len_type, [$type], [sa_len type])
25 sa_len_type_found=t
26 break])
27 @@ -636,6 +638,7 @@
28 in_port_t, in_addr_t],
29 , ,
31 +#include <stdint.h>
32 #include <sys/types.h>
33 #include <netinet/in.h>