2009-01-08Use fsync from gnulib for portability
J. Ali Harlow <ali@juiblex.co.uk> [Thu, 08 Jan 2009 17:29:31 +0000] rev 336
Use fsync from gnulib for portability

2009-01-08Link to winsock2 under mingw (needed for ntohl).
J. Ali Harlow <ali@juiblex.co.uk> [Thu, 08 Jan 2009 17:12:28 +0000] rev 335
Link to winsock2 under mingw (needed for ntohl).

2009-01-08Add an early include of config.h as required by gnulib
J. Ali Harlow <ali@juiblex.co.uk> [Thu, 08 Jan 2009 16:54:05 +0000] rev 334
Add an early include of config.h as required by gnulib

2009-01-08Remove another unnecessary include of sys/mman.h
J. Ali Harlow <ali@juiblex.co.uk> [Thu, 08 Jan 2009 15:44:43 +0000] rev 333
Remove another unnecessary include of sys/mman.h

2009-01-08Use gnulib with the razor binary for portability (for fnmatch in particular).
J. Ali Harlow <ali@juiblex.co.uk> [Thu, 08 Jan 2009 15:36:35 +0000] rev 332
Use gnulib with the razor binary for portability (for fnmatch in particular).

2009-01-08Remove unnecessary include of sys/mman.h
J. Ali Harlow <ali@juiblex.co.uk> [Thu, 08 Jan 2009 15:22:34 +0000] rev 331
Remove unnecessary include of sys/mman.h

2009-01-08Only include sys/wait.h on platforms that have it.
J. Ali Harlow <ali@juiblex.co.uk> [Thu, 08 Jan 2009 15:18:01 +0000] rev 330
Only include sys/wait.h on platforms that have it.

2009-01-08Include winsock.h rather than arpa/inet.h on mingw platforms.
J. Ali Harlow <ali@juiblex.co.uk> [Thu, 08 Jan 2009 15:08:08 +0000] rev 329
Include winsock.h rather than arpa/inet.h on mingw platforms.
Also fix a trivial int/long mismatch.

2009-01-08Don't attempt to use chroot() on systems that don't support it.
J. Ali Harlow <ali@juiblex.co.uk> [Thu, 08 Jan 2009 14:35:18 +0000] rev 328
Don't attempt to use chroot() on systems that don't support it.

This has the added bonus of allowing us to use popen() rather than
fork()/exec() for improved portability. Of course, the loss of an
install root is a major reduction of functionality but it's hard to
see what else we could substitute for chroot().

2009-01-08Don't try and create symbolic links on platforms that don't support symlink()
J. Ali Harlow <ali@juiblex.co.uk> [Thu, 08 Jan 2009 13:51:07 +0000] rev 327
Don't try and create symbolic links on platforms that don't support symlink()