linux: sometimes <limits.h> does not define PATH_MAX
Hence we include <linux/limits.h> in this case
This commit is contained in:
parent
0901f76b60
commit
b5695ce9f0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user