X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b523a72928c0ef630be33cf5f5aab9fc301958e1..f66fd42c75d104cdde28cc23de02bf4ddaf95d15:/h/nmh.h?ds=inline diff --git a/h/nmh.h b/h/nmh.h index 4f5f5e48..d88ec529 100644 --- a/h/nmh.h +++ b/h/nmh.h @@ -15,6 +15,15 @@ # include #endif #include + +#ifdef HAVE_STDBOOL_H +# include +#else +# define bool int +# define true 1 +# define false 0 +#endif + #include #include @@ -29,8 +38,9 @@ # include #endif -# include -# include +#include +#include +#include /* * we should be getting this value from pathconf(_PC_PATH_MAX) @@ -67,11 +77,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