Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
use predefined OS macro instead of uname.
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
af3ec6d
..
f42797f
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-20,11
+20,11
@@
#include <X11/keysym.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <X11/Xutil.h>
-#if defined(
LINUX
)
+#if defined(
__linux
)
#include <pty.h>
#include <pty.h>
-#elif defined(
OPENBSD) || defined(NETBSD
)
+#elif defined(
__OpenBSD__) || defined(__NetBSD__
)
#include <util.h>
#include <util.h>
-#elif defined(
FREEBSD
)
+#elif defined(
__FreeBSD__) || defined(__DragonFly__
)
#include <libutil.h>
#endif
#include <libutil.h>
#endif