Fix for when MAXNAMLEN is not found (Android)

This commit is contained in:
Vlatko Kosturjak 2010-07-01 00:21:35 +02:00 committed by Emil Mikulic
parent a8176d0ed0
commit 9ca7ed4795

View File

@ -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