[libmnl] portability of getpagesize() in libmnl.h

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

 



Heyho,

the getpagesize() call in line

#define MNL_SOCKET_BUFFER_SIZE (getpagesize() < 8192L ? getpagesize() : 8192L)

of libmnl.h seems to be less portable than sysconf(_SC_PAGESIZE) as suggested by
the getpagesize man page. getpagesize() needs e.g. _BSD_SOURCE while sysconf()
does not.

Would you consider fixing this or should I write a patch?

(I'm not on the list, so please leave me a CC)

--Markus
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux