3c5d3a3780
Add PATH_DEFPATH to compat.h from Carlo Marcelo Arenas Belón.
2019-04-09 21:31:50 +01:00
a3967de9a5
Include headers if found regardless of forkpty.
2017-10-11 08:03:31 +01:00
143ccd27b4
Add memmem to compat.
2017-06-09 08:53:58 +01:00
b723f50e65
Do not need getopt.h for getopt, from Eric N Vander Weele.
2017-04-20 20:35:11 +01:00
9420758127
getptmfd() and fdforkpty() compat.
2017-04-20 19:09:07 +01:00
95c38087db
Missed freezero.
2017-04-19 07:58:45 +01:00
2e5664d2df
Update imsg*.[ch] from OpenBSD, add some compat bits it needs and remove some
...
bits it doesn't.
2017-03-24 10:05:53 +00:00
b79df1dc29
Compat code for strndup and strnlen.
2017-03-09 15:43:08 +00:00
514a723f74
Solaris fixes, mostly from Dagobert Michelsen.
2017-03-09 15:39:13 +00:00
c54a5d9fb3
Add wchar.h to compat.h, from Koichi Shiraishi.
2017-01-31 12:51:53 +00:00
3e495b4001
compat/* should not include tmux.h.
2017-01-25 13:49:01 +00:00
a3d5bfcece
Define away pledge() on !OpenBSD.
2017-01-23 12:27:58 +00:00
acf331f7f1
Add b64_pton as well.
2017-01-22 19:12:15 +00:00
e6f7180af1
tmux no longer uses openat() so we can remove the compatibilty function.
2016-10-13 22:17:29 +01:00
3ed0973493
Solaris build fixes from Rob Paisley.
2016-09-08 15:32:15 +01:00
6c94774b70
Add support for using utf8proc with --enable-utf8proc, useful for platforms
...
(like OS X) where the system implementation is crap. From Joshua Rubin.
2016-09-01 20:40:03 +01:00
cfef0c6658
getprogname() and setproctitle() on Linux.
2016-05-27 18:04:25 +01:00
fe4e9470bb
Add --static to PKG_CONFIG rather than replacing it.
2016-05-05 15:18:58 +01:00
ca29dc9abc
Update my email address.
2016-01-19 18:07:25 +00:00
8b4b3ff4fc
Add __unused, will be needed shortly.
2015-11-18 14:37:08 +00:00
9bba26f8c5
Add reallocarray prototype.
2015-11-18 14:09:17 +00:00
235e0bd65a
Update imsg*.[ch] from OpenBSD, including bzero->memset.
2015-07-12 19:46:58 +01:00
dfd72f5250
-$Id$.
2015-06-03 18:42:36 +01:00
65257b8e9b
OS X lacks HOST_NAME_MAX, reported by Christian Ebert.
2014-10-21 11:00:16 +01:00
b2224947fa
Solaris doesn't have flock and fcntl is useless so make a no-op flock. Reported
...
by Dagobert Michelsen.
2014-09-23 10:44:45 +01:00
92997b781a
Add compat/fparseln() for non-BSD systems
...
Linux and friends don't natively have fparseln() so add it to compat/ and
ensure autotools can pick it up.
2014-08-09 20:31:48 +01:00
886c282679
Use 0 if O_DIRECTORY is missing, reported by Dagobert Michelsen.
2014-01-06 15:12:05 +00:00
e588ddb5d6
Add openat() to compat.
2013-10-10 10:27:23 +01:00
e8567098a4
Add support for Cgywin, apparently it is enough just to open the tty again in
...
the server and fd passing is not necessary. Needs some ifdefs unfortunately but
no way around that and some of them can go next time we're willing to do a
protocol bump. Patch from J Raynor jxraynor at gmail dot com.
2013-07-12 22:21:42 +01:00
792e2856c9
Add compat for cfmakeraw, from Dagobert Michelsen.
2013-04-22 09:44:15 +01:00
64ea8829af
Add define for timersub to compat.h.
2013-03-28 00:00:13 +00:00
5339b8ce3a
Typo.
2011-07-22 15:10:24 +00:00
20134fa9f4
Compatibility for b64_ntop, missing from some alternative libc.
2011-07-22 10:49:33 +00:00
391f1f08c0
Expand the Id keyword.
2011-07-09 09:42:33 +00:00
f71b3054cd
Switch tmux to use autoconf and automake.
...
Although they suck, they suck less than the alternatives.
2010-12-31 22:12:33 +00:00
a6fc49ae08
Fix AIX warnings.
2010-11-11 20:45:49 +00:00
ae7a7be819
I am almost certain we don't need crypt or rt now, and it builds fine on
...
Linux without.
2010-10-27 21:40:03 +00:00
58684ea998
And more.
2010-10-27 21:34:59 +00:00
914f8584ef
Style tweaks.
2010-10-27 21:33:15 +00:00
2287ec7b3e
Compat for closefrom().
2010-10-27 20:21:01 +00:00
f54482a461
Solaris 9 has no stdint.h, ugh. Reported by a couple of people most
...
recently Timothy Larson.
2010-09-07 19:32:58 +00:00
60134cebda
imsg was moved into libutil on OpenBSD.
2010-06-06 13:00:47 +00:00
a9c6976268
Should be const char *.
2010-06-05 16:29:40 +00:00
9e7a5fa5ef
Spacing nits.
2010-05-19 21:49:57 +00:00
9c01a3d0db
Solaris 9 is missing CMSG_ALIGN and some of the RFC2292 CMSG_*. From
...
Dagobert Michelsen.
2010-05-19 21:40:49 +00:00
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
e41055c5aa
Adjust recent libevent changes to the portable version.
2009-11-08 22:51:34 +00:00
d23635f66d
Remove unneeded defines that were used with the internal locking mechanism.
2009-10-06 15:32:21 +00:00
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
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