diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-09-26 22:58:11 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-09-26 22:58:11 +0200 |
| commit | 8b39bc5db98c252269fe526a8c411bf245770ba2 (patch) | |
| tree | 78926be4957759d01aa3a9ed74cb60e29c52633a /server.c | |
| parent | d9dbad1bc63e0b2442ff81f8e839391a7e27c583 (diff) | |
server.c: Fix build on FreeBSD
Diffstat (limited to 'server.c')
| -rw-r--r-- | server.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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> |
