[PVFS2-CVS] commit by slang in pvfs2/src/common/statecomp: emalloc.c

CVS commit program cvs at parl.clemson.edu
Wed Nov 9 20:27:02 EST 2005


Update of /projects/cvsroot/pvfs2/src/common/statecomp
In directory parlweb:/tmp/cvs-serv439/src/common/statecomp

Modified Files:
	emalloc.c 
Log Message:
* malloc.h is obsolete in freebsd, check for it
* No error.h in freebsd
* linux allows Lu,Lx, and Ld to be interchangeable with llu,llx, and
lld.  Other platforms (solaris, bsd) don't.  Replaced all the L*
with ll*.
* bsd doesn't have mntent.h.  use fstab.h and our own funcs.
* bsd doesn't know about ssize_t.  Use size_t instead.
* bsd doesn't have asm errnos.  Check for each of those
errno macros and if not defined define to -1
* check for db3/db.h db4/db.h header if db path is specified using
--with-db
* darwin has aio support builtin, doesn't need -lrt
* remove kernel stuff in pvfs2-types.h that sets WORDSIZE.  gcc
defines __LP64__ on archs with 64bit longs so we use that instead.
* darwin's open doesn't accept O_LARGEFILE.  off_t is an int64 by
default.  define O_LARGEFILE if it hasn't been.
* need to run ranlib on darwin after libpvfs2.a gets installed to regenerate
table of contents



Index: emalloc.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/statecomp/emalloc.c,v
diff -p -u -r1.4 -r1.5
--- emalloc.c	11 Jan 2005 14:00:27 -0000	1.4
+++ emalloc.c	10 Nov 2005 01:27:02 -0000	1.5
@@ -14,7 +14,9 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef HAVE_MALLOC_H
 #include <malloc.h>
+#endif
 
 void *emalloc(unsigned int size);
 



More information about the PVFS2-CVS mailing list