summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/curses.priv.h
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-07-09 18:52:17 +0000
committerStefan Reinauer <stepan@openbios.org>2010-07-09 18:52:17 +0000
commit857a7784497e887f7881e635dec31e3d53837d60 (patch)
tree0a4f2d569b199de621eb5a3f3297d907eb64c945 /payloads/libpayload/include/curses.priv.h
parent2f969a6ab087255fdb242f3ef010f67177391b40 (diff)
become more standard with libpayload headers. PATH_MAX belongs in limits.h,
tiny curses can use standard includes now. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Patrick Georgi <patrick@georgi-clan.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5664 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/include/curses.priv.h')
-rw-r--r--payloads/libpayload/include/curses.priv.h41
1 files changed, 14 insertions, 27 deletions
diff --git a/payloads/libpayload/include/curses.priv.h b/payloads/libpayload/include/curses.priv.h
index 1f51f2ed55..594b4da125 100644
--- a/payloads/libpayload/include/curses.priv.h
+++ b/payloads/libpayload/include/curses.priv.h
@@ -46,9 +46,6 @@
#ifndef _CURSES_PRIV_H
#define _CURSES_PRIV_H 1
-//// XXX
-extern void *memset(void *s, int c, size_t len);
-
//// #include <ncurses_dll.h>
#ifdef __cplusplus
@@ -63,38 +60,28 @@ extern "C" {
#define MODULE_ID(id) /*nothing*/
#endif
-//// #include <stdlib.h>
-//// #include <string.h>
-//// #include <sys/types.h>
-////
-//// #if HAVE_UNISTD_H
-//// #include <unistd.h>
-//// #endif
-////
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
//// #if HAVE_SYS_BSDTYPES_H
//// #include <sys/bsdtypes.h> /* needed for ISC */
//// #endif
-////
-//// #if HAVE_LIMITS_H
-//// # include <limits.h>
+
+#if HAVE_LIMITS_H
+# include <limits.h>
//// #elif HAVE_SYS_PARAM_H
//// # include <sys/param.h>
-//// #endif
+#endif
////
//// #include <assert.h>
-//// #include <stdio.h>
-////
-//// #include <errno.h>
+#include <stdio.h>
-#ifndef PATH_MAX
-# if defined(_POSIX_PATH_MAX)
-# define PATH_MAX _POSIX_PATH_MAX
-# elif defined(MAXPATHLEN)
-# define PATH_MAX MAXPATHLEN
-# else
-# define PATH_MAX 255 /* the Posix minimum path-size */
-# endif
-#endif
+#include <errno.h>
#if DECL_ERRNO
extern int errno;