mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
(chibi pty): fix compilation errors on the BSDs
* Include util.h instead of pty.h on OpenBSD and NetBSD * Include libutil.h instead of pty.h on FreeBSD and DragonFly BSD * Include utmp.h only on non-BSD systems (FreeBSD does not have that header and none of these BSDs require it) Tested on all four of these BSDs.
This commit is contained in:
parent
a9cebfb8da
commit
8b6e236b09
1 changed files with 4 additions and 2 deletions
|
@ -1,8 +1,10 @@
|
|||
|
||||
(cond-expand
|
||||
(macosx (c-system-include "util.h"))
|
||||
((or macosx openbsd netbsd) (c-system-include "util.h"))
|
||||
((or freebsd dragonfly) (c-system-include "libutil.h"))
|
||||
(else (c-system-include "pty.h")))
|
||||
(c-system-include "utmp.h")
|
||||
(cond-expand
|
||||
((not bsd) (c-system-include "utmp.h")))
|
||||
|
||||
(c-link "util")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue