X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2e768e3cc0ce768373d3320eca4cdd08b8cf646a..ac00e2883562da9b440b09f243e4c11559c08244:/h/nmh.h diff --git a/h/nmh.h b/h/nmh.h index b2bac8f0..3f4c8b82 100644 --- a/h/nmh.h +++ b/h/nmh.h @@ -14,10 +14,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 +37,9 @@ # include #endif -# include -# include +#include +#include +#include /* * we should be getting this value from pathconf(_PC_PATH_MAX) @@ -65,11 +76,13 @@ # endif #endif +#ifndef HAVE_GETLINE +ssize_t getline(char **lineptr, size_t *n, FILE *stream); +#endif + /* * Defaults for programs if they aren't configured in a user's profile */ #define DEFAULT_PAGER "more" #define DEFAULT_EDITOR "vi" - -#include