Include compat.h after system headers, GitHub issue 2492.

This commit is contained in:
Nicholas Marriott 2020-12-07 12:12:40 +00:00
parent caf096394b
commit 681c0d2bfb

View File

@ -14,8 +14,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "compat.h"
#ifndef HAVE_CLOSEFROM
#include <sys/types.h>
@ -50,6 +48,8 @@
# include <libproc.h>
#endif
#include "compat.h"
#ifndef OPEN_MAX
# define OPEN_MAX 256
#endif