netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [libmnl] portability of getpagesize() in libmnl.h
@ 2015-02-24 20:45 Markus Teich
  2015-02-26 13:08 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 4+ messages in thread
From: Markus Teich @ 2015-02-24 20:45 UTC (permalink / raw)
  To: netfilter-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-02 11:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 20:45 [libmnl] portability of getpagesize() in libmnl.h Markus Teich
2015-02-26 13:08 ` Pablo Neira Ayuso
2015-02-26 13:38   ` [PATCH] header: use sysconf() instead of getpagesize() Markus Teich
2015-03-02 11:06     ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).