[PVFS2-CVS] commit by slang in pvfs2/src/common/llist: llist.h
CVS commit program
cvs at parl.clemson.edu
Wed Nov 9 20:27:00 EST 2005
Update of /projects/cvsroot/pvfs2/src/common/llist
In directory parlweb:/tmp/cvs-serv439/src/common/llist
Modified Files:
llist.h
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: llist.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/llist/llist.h,v
diff -p -u -r1.6 -r1.7
--- llist.h 28 Jul 2004 14:32:36 -0000 1.6
+++ llist.h 10 Nov 2005 01:27:00 -0000 1.7
@@ -8,9 +8,12 @@
#ifndef LLIST_H
#define LLIST_H
-#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
+
#define PINT_llist_add(__llist_p, __void_p) \
PINT_llist_add_to_head((__llist_p), (__void_p))
More information about the PVFS2-CVS
mailing list