mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Patch for bug #63408 by Florian Weimer
This commit is contained in:
parent
4a03bbc328
commit
94a8b046b0
6 changed files with 17 additions and 5 deletions
|
@ -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:
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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];
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue