FreeBSD patches
Brett Taylor (brett@peloton.physics.montana.edu)
Wed, 15 Jul 1998 14:11:25 -0600 (MDT)
Here are a bunch of patches to make most of pre6 compile on FreeBSD. I
haven't had a chance to test everything but I'll try to do that tonight.
Could someone please add these patches to pre7 before it comes out?
Things left to do (unbelievably minimal list):
- my asload patches no longer work.... not sure what happened
try to get it working again
- fix configure to look for sgmlfmt (instead of sgmltools)
Since I hate attachments, I'll include the patches below:
Brett
***********************************************************
Brett Taylor brett@peloton.physics.montana.edu
http://peloton.physics.montana.edu/brett/
***********************************************************
--------FreeBSD patches below------------------------------
* note the asfsm_lite patch below will still not get it to compile -
I need to make a patch so it can find NGROUPS - even then if it
compiles I'm guessing it still won't work...
*** src/afscript/types.h.old Wed Jul 15 13:38:51 1998
--- src/afscript/types.h Wed Jul 15 13:39:39 1998
***************
*** 5,11 ****
--- 5,13 ----
#include <unistd.h>
#include <ctype.h>
#include <stdlib.h>
+ #ifndef __FreeBSD__
#include <malloc.h>
+ #endif
#include <sys/time.h>
#define XK_MISCELLANY
***************
*** 14,20 ****
#ifdef ISC
#include <sys/bsdtypes.h> /* Saul */
#endif
! #if defined ___AIX || defined _AIX || defined __QNX__ || defined ___AIXV3 || defined AIXV3 || defined _SEQUENT_
#include <sys/select.h>
#endif
--- 16,22 ----
#ifdef ISC
#include <sys/bsdtypes.h> /* Saul */
#endif
! #if defined ___AIX || defined _AIX || defined __QNX__ || defined ___AIXV3 || defined AIXV3 || defined _SEQUENT_ || defined __FreeBSD__
#include <sys/select.h>
#endif
*** src/afterstep/configure.c.old Wed Jul 15 13:40:24 1998
--- src/afterstep/configure.c Wed Jul 15 13:41:07 1998
***************
*** 48,53 ****
--- 48,56 ----
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
+ #ifdef __FreeBSD__
+ #include <sys/syslimits.h>
+ #endif
#include <X11/Xproto.h>
#include <X11/Xatom.h>
*** src/asfsm_lite/asfsm.c.old Wed Jul 15 13:43:21 1998
--- src/asfsm_lite/asfsm.c Wed Jul 15 13:43:42 1998
***************
*** 24,29 ****
--- 24,34 ----
#ifdef HAVE_SYS_STATVFS_H
#include <sys/statvfs.h> /* for solaris' statvfs() */
#endif /* HAVE_SYS_STATVFS_H */
+ #ifdef __FreeBSD__
+ #include <sys/syslimits.h>
+ #include <sys/param.h>
+ #endif
+
#ifdef SIXTEENBIT
#include "16bit/surreal.xpm"
*** src/asmixer/asmixer.c.old Wed Jul 15 13:44:52 1998
--- src/asmixer/asmixer.c Wed Jul 15 13:44:33 1998
***************
*** 30,35 ****
--- 30,40 ----
#include <errno.h>
#include <unistd.h>
+ #ifdef __FreeBSD__
+ #include <sys/syslimits.h>
+ #include <sys/param.h>
+ #endif
+
#include <sys/mount.h>
#ifdef HAVE_MACHINE_SOUNDCARD_H
*** src/afform/Form.c.old Wed Jul 15 13:49:52 1998
--- src/afform/Form.c Wed Jul 15 13:50:26 1998
***************
*** 33,39 ****
--- 33,41 ----
#include <X11/cursorfont.h>
#define XK_MISCELLANY
#include <X11/keysymdef.h>
+ #ifndef __FreeBSD__
#include <malloc.h>
+ #endif
#include <string.h>
#include <sys/types.h>
#include <sys/time.h>
--
WWW: http://www.afterstep.org/
FTP: ftp://ftp.afterstep.org/
MAIL: http://wormhole.eosys.com/mailing-lists/AfterStep-Dev-Info.html
FAQ: http://www.cs.purdue.edu/homes/zamboni/afterstep/FAQ.html
To unsubscribe: echo unsubscribe | mail afterstep-dev-request@eosys.com