RTLD_NOW [FreeBSD]; libgnome/gnome-parse.c patch




This and the next post contain patches for the #include <malloc.h> problem
I've been having with FreeBSD 2.2.2.  The problem has also cropped up with
gnome-core [in help-browser/HTParse.c]... there's got to be a better way
around this... I'm thinking autoconf, but I don't know it well enough to
try and fix it this way.

I have a patch for the RTLD_NOW probelm I had before.  It's caused because
my FreeBSD 2.2.2 machine doesn't define RLTD_* in /usr/include/dlfcn.h... and
I don't have /usr/include/dl.h, either...  RTLD_* _are_ defined in FreeBSD
2.2.6's dlfcn.h, however, so I'm not going to post the patch... but it should
be noted somewhere [dhawkins: CVS Compile FAQ?] that FreeBSD 2.2.6 [perhaps
earlier... I don't have the machines to be sure] is required to compile
gnome-libs...

This ChangeLog entry applies to the next patch, too.

...jsled

ChangeLog entry:

1998-05-05  Josh Sled <jsled@xcf.berkeley.edu>
	* libgnome/gnome-parse.c: #ifdef'ed out <malloc.h> on FreeBSD machines.
	* support/argp-help.c: #ifdef'ed out <malloc.h> on FreeBSD machines.

Patch:

--- gnome-parse.c       1998/04/30 19:16:58     1.4
+++ gnome-parse.c       1998/05/05 07:47:19
@@ -15,7 +15,11 @@
    License along with the Gnome Library; see the file COPYING.LIB.  If not,
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
+#ifdef __FreeBSD__
+#include <stdlib.h>
+#else
 #include <malloc.h>
+#endif
 #include "gnome-defs.h"
 #include "gnome-parse.h"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]