linux: sometimes <limits.h> does not define PATH_MAX

Hence we include <linux/limits.h> in this case
This commit is contained in:
Jean-Michaël Celerier 2018-09-06 13:45:42 +02:00
parent 0901f76b60
commit b5695ce9f0

View File

@ -163,7 +163,11 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(__linux__)
#include <linux/limits.h>
#else
#include <limits.h>
#endif
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif