X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/82f1f1db8de7b833068a3ef0dc7d10759bb94941..94187a80bd60baab4b9c4b949ad820d730578123:/h/nmh.h diff --git a/h/nmh.h b/h/nmh.h index b2bac8f0..c2f8dfca 100644 --- a/h/nmh.h +++ b/h/nmh.h @@ -1,6 +1,4 @@ - -/* - * nmh.h -- system configuration header file +/* nmh.h -- system configuration header file */ #ifdef HAVE_CONFIG_H @@ -14,10 +12,20 @@ /* See etc/gen-ctype-checked.c. */ # include #endif +#include + +#ifdef HAVE_STDBOOL_H +# include +#else +# define bool int +# define true 1 +# define false 0 +#endif + #include +#include # include -#define NLENGTH(dirent) strlen((dirent)->d_name) #include #include @@ -27,8 +35,9 @@ # include #endif -# include -# include +#include +#include +#include /* * we should be getting this value from pathconf(_PC_PATH_MAX) @@ -65,11 +74,6 @@ # endif #endif -/* - * Defaults for programs if they aren't configured in a user's profile - */ - -#define DEFAULT_PAGER "more" -#define DEFAULT_EDITOR "vi" - -#include +#ifndef HAVE_GETLINE +ssize_t getline(char **lineptr, size_t *n, FILE *stream); +#endif