folkertvanheusden / HTTPing

Ping an HTTP server
GNU Affero General Public License v3.0
31 stars 9 forks source link

nc.c: add <unistd.h> for useconds_t #8

Closed trofi closed 2 years ago

trofi commented 2 years ago

Without the change bud fails on darwin as:

clang -Wall -W -Wextra -pedantic -D_FORTIFY_SOURCE=2  -DVERSION=\"2.9\" -DLOCALEDIR=\"/usr/share/locale\" -DNC -DFW -D_DEBUG -ggdb   -c -o nc.o nc.c
In file included from nc.c:22:
./utils.h:19:15: error: unknown type name 'useconds_t'
void myusleep(useconds_t v);
              ^
make: *** [<builtin>: nc.o] Error 1

Closes: https://github.com/folkertvanheusden/HTTPing/issues/4

folkertvanheusden commented 2 years ago

Thanks!