mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Fix for when MAXNAMLEN is not found (Android)
This commit is contained in:
parent
a8176d0ed0
commit
9ca7ed4795
@ -67,6 +67,14 @@ static const int debug = 1;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MAXNAMLEN
|
||||
#ifdef NAME_MAX
|
||||
#define MAXNAMLEN NAME_MAX
|
||||
#else
|
||||
#define MAXNAMLEN 255
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) ( ((a)<(b)) ? (a) : (b) )
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user