eggheads / eggdrop

The Eggdrop IRC Bot
GNU General Public License v2.0
494 stars 88 forks source link

Fix include sys/resource.h #1621

Open michaelortmann opened 2 weeks ago

michaelortmann commented 2 weeks ago

Found by: michaelortmann Patch by: michaelortmann Fixes:

One-line summary: Fix include sys/resource.h

Additional description (if needed): Followup PR to #719 and 1619

Test cases demonstrating functionality (if applicable): Fixes the following bug:

$ uname -a
OpenBSD openbsd47.home.arpa 4.7 GENERIC#558 i386
$ make [...]
gcc -std=gnu99 -g -O2 -pipe -Wall -I.. -I..  -DHAVE_CONFIG_H -I/usr/local/include/tcl8.5 -g3 -DDEBUG -DDEBUG_ASSERT -DDEBUG_MEM -DDEBUG_DNS  -c cmds.c
In file included from cmds.c:25:
/usr/include/sys/resource.h:56: error: field `ru_utime' has incomplete type
/usr/include/sys/resource.h:57: error: field `ru_stime' has incomplete type
/usr/include/sys/resource.h:96: error: syntax error before "int32_t"
/usr/include/sys/resource.h:101: error: syntax error before "rlim_t"
/usr/include/sys/resource.h:107: error: syntax error before "fixpt_t"
In file included from cmds.c:25:
/usr/include/sys/resource.h:120: error: syntax error before "id_t"
/usr/include/sys/resource.h:123: error: syntax error before "id_t"
*** Error code 1

Stop in /home/michael/usr/src/eggdrop/src (line 92 of /usr/share/mk/sys.mk).
*** Error code 1

Stop in /home/michael/usr/src/eggdrop (line 256 of Makefile).