diff --git a/compat.h b/compat.h index 720cd909..f33dcf1a 100644 --- a/compat.h +++ b/compat.h @@ -289,6 +289,11 @@ void explicit_bzero(void *, size_t); int getdtablecount(void); #endif +#ifndef HAVE_GETDTABLESIZE +/* getdtablesize.c */ +int getdtablesize(void); +#endif + #ifndef HAVE_CLOSEFROM /* closefrom.c */ void closefrom(int); diff --git a/compat/htonll.c b/compat/htonll.c index aef65983..86f34b46 100644 --- a/compat/htonll.c +++ b/compat/htonll.c @@ -14,6 +14,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include #include #include "compat.h" diff --git a/compat/ntohll.c b/compat/ntohll.c index c2fe1bb7..b1f77ca7 100644 --- a/compat/ntohll.c +++ b/compat/ntohll.c @@ -14,6 +14,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include #include #include "compat.h" diff --git a/compat/setproctitle.c b/compat/setproctitle.c index e72ae274..99fad55c 100644 --- a/compat/setproctitle.c +++ b/compat/setproctitle.c @@ -17,6 +17,7 @@ #include #include +#include #include #include "compat.h"