[AD] Fix for compilation problem on FreeBSD

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


See http://www.allegro.cc/forums/view_thread.php?_id=419435 for details on 
the original problem.
The attached patch should fix compilation problems on FreeBSD from current 
CVS. I tested a slightly different version of this on the SF compile farm 
and it now appears to build normally. I can't test the binaries though.
I'll ask the original poster to confirm that the problem is fixed.

Evert
Index: aclocal.m4
===================================================================
RCS file: /cvsroot/alleg/allegro/aclocal.m4,v
retrieving revision 1.70
diff -u -r1.70 aclocal.m4
--- aclocal.m4	30 Oct 2004 22:44:56 -0000	1.70
+++ aclocal.m4	23 Nov 2004 09:14:19 -0000
@@ -186,8 +186,13 @@
 AC_MSG_CHECKING(for System V sys/procfs)
 AC_DEFUN(ALLEGRO_SV_PROCFS,
 [AC_CHECK_HEADER(sys/procfs.h,
-AC_TRY_COMPILE([#include  <sys/procfs.h>], [struct prpsinfo psinfo;],
-allegro_sv_procfs=yes, allegro_sv_procfs=no), allegro_sv_procfs=no)])
+AC_TRY_COMPILE([
+   #include <sys/procfs.h> 
+   #include <sys/ioctl.h>], 
+  [struct prpsinfo psinfo; 
+   ioctl(0, PIOCPSINFO, &psinfo);],
+  allegro_sv_procfs=yes, allegro_sv_procfs=no), allegro_sv_procfs=no)]
+)
 AC_MSG_RESULT($allegro_sv_procfs)
 
 dnl


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/