X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/012d05c2b62332eb400d66b806e48216d39358c6..63621a81d16ab743de6b57d47578a9a2c670ad22:/h/nmh.h diff --git a/h/nmh.h b/h/nmh.h index 24689192..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 @@ -15,11 +13,19 @@ # 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 @@ -68,9 +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" +#ifndef HAVE_GETLINE +ssize_t getline(char **lineptr, size_t *n, FILE *stream); +#endif