Pascal Stumpf
3c6a0584dd
Use cpp -traditional.
...
StandardCppOptions do not get respected here, so change the default CppCmd
to cpp -traditional like for FreeBSD. Helps kill a few warnings.
2012-08-12 14:20:58 -06:00
Pascal Stumpf
72c954e5b3
sym2num: add path to cpp on OpenBSD.
2012-08-12 14:20:58 -06:00
Pascal Stumpf
a1cbcd24db
Low-hanging fruit: Fix most warnings in lib/DtSearch.
...
Most of these are related to missing includes and prototypes as well as
parens/braces. A few are also potential 64bit issues.
2012-08-12 14:20:58 -06:00
Pascal Stumpf
0bbd4ff9aa
Get rid of malloc.h.
...
This is a non-POSIX/ISO-C header. It is ok to include this on Linux, but it
is obsolete on BSD; FreeBSD even throws an error if you include it with
__STDC__ defined. Every system should nowadays have malloc() defined in
stdlib.h.
Diff is largely mechanical, replacing malloc.h with stdlib.h where it is not
yet included anyway.
2012-08-12 14:20:58 -06:00
Pascal Stumpf
18a5139d7a
Do not use the PID as a way of generating a "random" filename.
...
This script did not even check for the file's existence prior to cat'ing
random stuff into it. Ouch.
2012-08-12 14:20:57 -06:00
Pascal Stumpf
aa9ea72bfb
Do not use internal libjpeg.
...
Nowadays, OpenMotif is itself linked to libjpeg, so pulling in another
version of it causes symbol size mismatches, not to mention the maintenance
burden and security implications arising from keeping our own copy of libjpeg.
We still need some of the header files provided here because they are internal
to libjpeg and not installed on most distributions.
2012-08-12 14:20:57 -06:00
Pascal Stumpf
5a8d2bb16f
dtmail actually does work now on OpenBSD due to other changes.
2012-08-12 14:20:36 -06:00
Pascal Stumpf
71f3ed16f8
Patches for dtscreen, dtsearchpath, dtsession on OBSD.
...
Do not redefine round(3), and provide a manpath for OpenBSD.
(this is one of the few things that need to be adjusted for other BSDs)
2012-08-11 20:06:44 -06:00
Pascal Stumpf
43bae997c8
OpenBSD patches for ttsnoop.
...
Mostly adding std:: for strstream interfaces.
2012-08-11 20:06:44 -06:00
Pascal Stumpf
76984653b4
OpenBSD patches for dtpdmd and dtprintinfo.
...
Casts, #ifdefs, SIGCLD ...
2012-08-11 20:06:44 -06:00
Pascal Stumpf
d418376944
OpenBSD #ifdefs for imake templates for localisations.
2012-08-11 20:06:44 -06:00
Pascal Stumpf
205e26b3ef
Make nsgmls compile on OpenBSD.
...
As far as I can tell, the duplicate instantiations from entmgr_inst.m4 are
unnecessary and only cause compile failures without -fpermissive.
2012-08-11 20:06:43 -06:00
Pascal Stumpf
e3ad7e24e3
Current state of my dtmail work.
...
Mostly #ifdefs and casts; also, do not redefine strcasestr(). This will
probably be needed for Linux too when compiling without -fpermissive.
2012-08-11 19:53:02 -06:00
Pascal Stumpf
7c3a972d32
Make dtlogin compile on OpenBSD.
...
Most importantly, we *cannot* do the utmp stuff this code is attempting.
It is SysV-specific.
2012-08-11 19:51:35 -06:00
Pascal Stumpf
a8d5c1f0ba
Make dtinfo work on OpenBSD.
...
strstream.h is now called "strstream" and is obsolete, but use it anyway until
all code is converted over. This also needs std:: added, at least for GCC
4.2.1. Lastly, when hardcoding the path to perl, /usr/bin/perl should be used
rather than anything else.
2012-08-11 19:48:18 -06:00
Pascal Stumpf
3e4517dc2a
OpenBSD patches for dtcalc, dtdocbook, dthelp and dtimsstart.
2012-08-11 19:43:41 -06:00
Pascal Stumpf
131c7a9e04
Imakefile diffs for OpenBSD.
2012-08-11 19:23:43 -06:00
Pascal Stumpf
eaec696ad6
Fixes for dtfile on OpenBSD, plus missing prototypes. Use statfs() on BSD to find out if a file system is NFS.
2012-08-10 14:13:45 -06:00
Pascal Stumpf
57463ec10e
OpenBSD fixes for dtcm. There are no global "timezone" and "tzname" symbols on BSD. Apart from that, mainly #ifdefs.
2012-08-10 14:11:54 -06:00
Pascal Stumpf
3718075b7c
OpenBSD fixes for DtWidget, dtaction, dtappbuilder.
2012-08-10 14:10:52 -06:00
Pascal Stumpf
8bbf5a7a1b
Allow dtterm to at least allocate a pty on OpenBSD. Display is still mangled, however, and it frequently crashes (64bit issue).
2012-08-10 14:08:48 -06:00
Pascal Stumpf
19647809e4
OpenBSD fixes for lib/DtTerm: values.h, #ifdef's and some constants that are not defined on BSD. Also, leave out utmp stuff that does not work on BSD. Note that this terminal allocation does not work properly yet, but this will be fixed later.
2012-08-10 14:07:36 -06:00
Pascal Stumpf
3b77d7c065
Tooltalk fixes for OpenBSD. This consists mainly of #ifdefs, casts and some small type nits.
2012-08-10 06:24:29 -06:00
Pascal Stumpf
3d5a492038
OpenBSD fixes for DtPrint and csa.
2012-08-10 06:18:28 -06:00
Pascal Stumpf
185ec24999
OpenBSD fixed for lib/DtSvc.
2012-08-10 05:51:37 -06:00
Pascal Stumpf
78053ff2a4
SIGPWR is not present everywhere.
2012-08-10 05:44:49 -06:00
Pascal Stumpf
6fc45220c4
Provide support for installation under OpenBSD. Don't override PATH in the install script, it may hide needed tools, and the location of these binaries is highly OS-dependent anyway.
...
Also, allow overriding some variables in the install script.
2012-08-09 14:26:45 -06:00
Pascal Stumpf
f9c844aada
recognise OpenBSD version
2012-08-09 14:15:42 -06:00
Pascal Stumpf
18dd384068
Rename getline() to not conflict with the standard POSIX interface of the same name.
2012-08-09 14:15:25 -06:00