1
0
Fork 0

server.c: Fix build on FreeBSD

This commit is contained in:
Xavier Del Campo Romero 2023-09-26 22:58:11 +02:00
parent d9dbad1bc6
commit 8b39bc5db9
Signed by untrusted user: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,10 @@
/* As of FreeBSD 13.2, sigaction(2) still conforms to IEEE Std
* 1003.1-1990 (POSIX.1), which did not define SA_RESTART.
* FreeBSD supports it as an extension, but then _POSIX_C_SOURCE must
* not be defined. */
#ifndef __FreeBSD__
#define _POSIX_C_SOURCE 200809L
#endif
#include "slweb/server.h"
#include <fcntl.h>