[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pong2 - PATH_MAX patch for review



Barry deFreese, le Mon 25 Jun 2012 09:39:43 -0400, a écrit :
> On 6/25/2012 8:39 AM, Samuel Thibault wrote:
> > Barry deFreese, le Tue 19 Jun 2012 23:20:04 -0400, a écrit :
> >> +#ifdef __linux__
> >>  #include <linux/limits.h>
> >> +#endif
> > 
> > Better check that it simply works on Linux with <limits.h> instead of
> > <linux/limits.h>
> > 
> > Samuel
> > 
> 
> Samuel,
> 
> Do you mean something like:
> 
> #ifdef _LIBC_LIMITS_H_
>   #include <limits.h>
> #endif

No, just

#include <limits.h>

limits.h is Posix, and should provide whatever the package fetches from
linux/limits.h

Samuel


Reply to: