Tiago Cunha
60134cebda
imsg was moved into libutil on OpenBSD.
2010-06-06 13:00:47 +00:00
Nicholas Marriott
d98efa5378
Only need to build setenv.c once.
2010-06-05 18:14:29 +00:00
Nicholas Marriott
278effd7ea
Solaris 9 doesn't have setenv and unsetenv so add compat versions, based
...
on code from Dagobert Michelsen.
2010-05-19 21:31:39 +00:00
Nicholas Marriott
0c5a964e63
Support NetBSD 6 which will now have its own terminfo (yay).
2010-04-23 07:29:39 +00:00
Nicholas Marriott
07dcf8610f
FreeBSD kqueue is broken before 8.
2010-04-05 22:28:25 +00:00
Nicholas Marriott
5879e2a32b
libevent needs librt on Linux, from Aaron Isotton.
2010-04-02 21:26:40 +00:00
Nicholas Marriott
b70be285b7
Look in /opt/blah on OS X, from simmel.
2009-12-11 20:08:18 +00:00
Nicholas Marriott
399002baa4
Despite terminfo being in use for around 20 years, NetBSD still haven't got
...
their act together, so add an ifdef to use ncurses.h instead of curses.h.
Untested.
2009-11-26 09:19:05 +00:00
Nicholas Marriott
7230fe1648
OS X is still broken, so ask libevent not to use kqueue or poll.
2009-11-11 09:54:07 +00:00
Tiago Cunha
e41055c5aa
Adjust recent libevent changes to the portable version.
2009-11-08 22:51:34 +00:00
Nicholas Marriott
cb3b0e661d
Add or clarify licenses where appropriate.
2009-10-25 21:45:26 +00:00
Nicholas Marriott
9e6d1b24c8
Support for automatic-rename for Solaris thanks to Todd Carson.
2009-10-14 10:14:21 +00:00
Nicholas Marriott
bf4b27e679
Earlier versions of FreeBSD are missing RB_PREV.
2009-09-24 07:15:22 +00:00
Tiago Cunha
88f689e167
Remove HAVE_LOGIN_CAP now that the internal locking mechanism was removed, due
...
to OpenBSD patchset 347.
2009-09-23 15:05:03 +00:00
Nicholas Marriott
2c9d4dfdd4
Tweak tparm() to make Solaris' backward userland happy and remove the -I mess
...
in configure which tried to deal with the fallout from their horrible package
management.
2009-09-22 19:20:08 +00:00
Nicholas Marriott
6df9ac7c37
FreeBSD tree.h is fine.
2009-09-20 17:51:54 +00:00
Nicholas Marriott
15b643fc11
Sync from OpenBSD:
...
==
Rather than constructing an entire termios struct from ttydefaults.h, just let
forkpty do it and then alter the bits that should be changed after fork. A
little neater and more portable.
==
This should fix problems caused by glibc's broken ttydefaults.h file.
2009-09-16 12:36:28 +00:00
Nicholas Marriott
895efe7b05
Solaris needs a knob twiddled to get POSIX getpwduid_r.
2009-09-04 14:48:25 +00:00
Tiago Cunha
c274551db6
- Make it compile on operating systems other than BSD due to OpenBSD patchset
...
308.
- While there, remove some duplicate code from the compat header file.
2009-09-03 20:54:39 +00:00
Nicholas Marriott
26682256b3
OS X CMSG_FIRSTHDR is broken.
2009-09-02 12:30:56 +00:00
Nicholas Marriott
6b4ed722b1
FreeBSD and NetBSD HAVE got ttydefaults.h. Fixes SF bug 2844744.
...
Also make clang use -iquote in makefiles.
2009-08-26 08:58:39 +00:00
Nicholas Marriott
c18e027ad5
Need this rubbish on Solaris for CMESG*.
2009-08-20 13:35:59 +00:00
Nicholas Marriott
2f517111ef
Solaris has no u_int32_t etc.
2009-08-20 12:49:18 +00:00
Nicholas Marriott
9311e4255e
Didn't mean to commit this.
2009-08-20 12:39:21 +00:00
Nicholas Marriott
61c7bfc128
Also undef CTRL.
2009-08-20 12:38:37 +00:00
Nicholas Marriott
698e003fcd
Solaris has no bzero().
2009-08-20 12:25:17 +00:00
Nicholas Marriott
09cc530299
Solaris and AIX have no ttydefaults.h.
2009-08-20 05:34:58 +00:00
Nicholas Marriott
7c9f827bfe
In yet another triumph of stupidity over common sense, the glibc
...
sys/ttydefaults.h is just a copy of the file from *BSD, taking no account of
the fact that their OWN termios.h uses entirely different indexes into the
array.
I know ttydefaults.h is not meant to be portable, but you'd think it would be
obvious to anyone that no file is better than a broken one...
2009-08-19 15:57:54 +00:00
Tiago Cunha
622e018570
vis(3) compat files were removed prematurely from {DragonFly,Free,Net}BSD. Add
...
them back, per SourceForge bug #2838408 .
2009-08-16 19:48:17 +00:00
Nicholas Marriott
8f9858ba2f
Solaris has no strsep(3).
2009-08-16 16:15:53 +00:00
Tiago Cunha
b402cef338
Adjust imsg changes to the portable version due to OpenBSD patchset 243.
2009-08-14 21:13:48 +00:00
Tiago Cunha
bd2fe4ce9b
Make it build on the remaining operating systems, due to the changes
...
introduced on OpenBSD patchset 211.
2009-08-09 15:53:02 +00:00
Tiago Cunha
e6d5633671
DragonFlyBSD, FreeBSD, and NetBSD do not need vis.c.
2009-08-09 15:48:03 +00:00
Nicholas Marriott
3e46bcec93
On SUSE Linux compatibility is something that only happens to other people, so
...
on Linux use -lncurses instead of -lcurses.
Also use -lncurses on NetBSD because they are only now realising that
supporting the 20-year-old terminfo API in their libcurses might be nice, and
so far none of the releases do.
2009-07-31 10:44:03 +00:00
Nicholas Marriott
5d13704e04
Some Linuxes/gcc versions hide LLONG_MAX/MIN unless the compiler is told to use
...
C99, so use -std=c99 on Linux.
2009-07-31 10:30:40 +00:00
Nicholas Marriott
edd3142d1f
Don't need ncurses, use curses.
2009-07-14 06:47:12 +00:00
Nicholas Marriott
1f1623e04d
Solaris has no strcasestr.
2009-07-02 07:31:02 +00:00
Nicholas Marriott
851a35eb5e
Change >| to rm/> as apparently Solaris /bin/sh doesn't like it.
2009-07-01 22:28:56 +00:00
Nicholas Marriott
32312e0252
vis compat stuff.
2009-06-25 20:27:32 +00:00
Nicholas Marriott
802e129fd7
Start of portability update: bitstring.h.
2009-06-25 17:02:59 +00:00
Nicholas Marriott
2f5c3d881d
#undef everything in config.h. This is the only bit of the scripting work I am
...
using now :-).
2009-05-18 19:18:41 +00:00
Nicholas Marriott
0f5168f971
Use >|.
2009-05-16 22:14:47 +00:00
Nicholas Marriott
c111310600
Use a better variable name and allow the uname to be overridden.
2009-05-16 22:06:01 +00:00
Nicholas Marriott
8913d853e4
+sfw for solaris too.
2009-05-14 19:49:26 +00:00
Nicholas Marriott
5adb342147
SunOS tweaks.
2009-05-14 07:49:23 +00:00
Nicholas Marriott
1a86934e09
NetBSD has no strtonum so needs compat/.
2009-05-14 00:40:58 +00:00
Nicholas Marriott
626fe978e1
NetBSD tree.h has no RB_PREV.
2009-05-14 00:35:53 +00:00
Nicholas Marriott
99dee98a2b
Use a variable for uname.
2009-05-14 00:34:25 +00:00
Nicholas Marriott
1b70993207
Move -lutil.
2009-05-14 00:17:37 +00:00
Nicholas Marriott
a8fe667267
Use the right osdep.
2009-05-14 00:12:42 +00:00