Patch for bug #63408 by Florian Weimer

This commit is contained in:
Richard Frith-Macdonald 2022-11-25 09:43:10 +00:00
parent 4a03bbc328
commit 94a8b046b0
6 changed files with 17 additions and 5 deletions

View file

@ -1,3 +1,12 @@
2022-11-25 Florian Weimer
* config/config.poll-dev.c:
* config/config.proccmd.c:
* config/config.reuseaddr.c:
* config/config.vasprintf.c:
* config/config.vsprintf.c:
Make config tests work with C99 compiler
2022-11-21 Wolfgang Lux <wolfgang.lux@gmail.com> 2022-11-21 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSFileManager.m: * Source/NSFileManager.m:

View file

@ -6,6 +6,7 @@
#include <stdio.h> #include <stdio.h>
#include <fcntl.h> #include <fcntl.h>
#include <poll.h> #include <poll.h>
#include <unistd.h>
int int
main() main()

View file

@ -10,6 +10,8 @@
notice and this notice are preserved. notice and this notice are preserved.
*/ */
#include <stdio.h> #include <stdio.h>
#include <unistd.h>
int main() int main()
{ {
char buf[32]; char buf[32];

View file

@ -31,7 +31,7 @@
// Maximum data in single I/O operation // Maximum data in single I/O operation
#define NETBUF_SIZE 4096 #define NETBUF_SIZE 4096
main() int main()
{ {
struct sockaddr_in sin; struct sockaddr_in sin;
int size = sizeof(sin); int size = sizeof(sin);

View file

@ -25,6 +25,6 @@ static int func(const char *fmt, ...)
int main() int main()
{ {
if (func("1234", 0) == 4) if (func("1234", 0) == 4)
exit (0); return 0;
exit (-1); return -1;
} }

View file

@ -25,6 +25,6 @@ static int func(const char *fmt, ...)
int main() int main()
{ {
if (func("1234", 0) == 4) if (func("1234", 0) == 4)
exit (0); return 0;
exit (-1); return -1;
} }