diff --git a/include/common/compat.h b/include/common/compat.h index 9eecdfbee6..e134d5864f 100644 --- a/include/common/compat.h +++ b/include/common/compat.h @@ -1,30 +1,32 @@ /* - include/common/compat.h - Operating system compatibility interface. - - Copyright (C) 2000-2008 Willy Tarreau - w@1wt.eu - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation, version 2.1 - exclusively. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ + * include/common/compat.h + * Operating system compatibility interface. + * + * Copyright (C) 2000-2010 Willy Tarreau - w@1wt.eu + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation, version 2.1 + * exclusively. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ #ifndef _COMMON_COMPAT_H #define _COMMON_COMPAT_H /* This is needed on Linux for Netfilter includes */ +#include #include #include +#include #include #include @@ -62,6 +64,11 @@ #define MSG_MORE 0 #endif +/* Maximum path length, OS-dependant */ +#ifndef MAXPATHLEN +#define MAXPATHLEN 128 +#endif + #if defined(TPROXY) && defined(NETFILTER) #include #include diff --git a/include/common/tools.h b/include/common/tools.h index 147783547f..526ea7fbfa 100644 --- a/include/common/tools.h +++ b/include/common/tools.h @@ -22,6 +22,7 @@ #ifndef _COMMON_TOOLS_H #define _COMMON_TOOLS_H +#include #include #ifndef MIN diff --git a/src/proto_uxst.c b/src/proto_uxst.c index 511753395f..a1c83b0232 100644 --- a/src/proto_uxst.c +++ b/src/proto_uxst.c @@ -19,7 +19,6 @@ #include #include -#include #include #include #include @@ -43,10 +42,6 @@ #include #include -#ifndef MAXPATHLEN -#define MAXPATHLEN 128 -#endif - static int uxst_bind_listener(struct listener *listener, char *errmsg, int errlen); static int uxst_bind_listeners(struct protocol *proto, char *errmsg, int errlen); static int uxst_unbind_listeners(struct protocol *proto);