[canopy-httpd] r1117 committed - * fix the include header name in cdefs.h...

0 views
Skip to first unread message

codesite...@google.com

unread,
Dec 12, 2010, 4:03:38 PM12/12/10
to canopy-s...@googlegroups.com
Revision: 1117
Author: phrakt
Date: Sun Dec 12 13:02:37 2010
Log: * fix the include header name in cdefs.h

* new sys.h that defines only CANOPY_PATH_MAX for now

http://code.google.com/p/canopy-httpd/source/detail?r=1117

Added:
/trunk/src/include/canopy/sys.h
Modified:
/trunk/src/include/canopy/cdefs.h

=======================================
--- /dev/null
+++ /trunk/src/include/canopy/sys.h Sun Dec 12 13:02:37 2010
@@ -0,0 +1,53 @@
+/* $Id$ */
+/*
+ * Copyright (c) 2010 Jean-Francois Brousseau <phr...@gmail.com>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
+ * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef _CANOPY_SYS_H_
+#define _CANOPY_SYS_H_
+
+#include <sys/types.h>
+#include <sys/param.h>
+
+#include <limits.h>
+
+
+
+
+#if !defined(CANOPY_PATH_MAX)
+
+#if defined(MAXPATHLEN)
+#define CANOPY_PATH_MAX MAXPATHLEN
+#elif defined(_POSIX_PATH_MAX)
+#define CANOPY_PATH_MAX _POSIX_PATH_MAX
+#endif
+
+#endif /* CANOPY_PATH_MAX */
+
+
+
+
+
+
+#endif /* _CANOPY_SYS_H_ */
=======================================
--- /trunk/src/include/canopy/cdefs.h Sun Dec 12 12:56:04 2010
+++ /trunk/src/include/canopy/cdefs.h Sun Dec 12 13:02:37 2010
@@ -24,8 +24,8 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

-#ifndef _CANOPY_SYS_H_
-#define _CANOPY_SYS_H_
+#ifndef _CANOPY_CDEFS_H_
+#define _CANOPY_CDEFS_H_

#include <sys/types.h>

@@ -76,4 +76,4 @@
#endif


-#endif /* _CANOPY_SYS_H_ */
+#endif /* _CANOPY_CDEFS_H_ */

Reply all
Reply to author
Forward
0 new messages