OSDN Git Service

_SC_PAGESIZE is standard. Some ancient legacy unix variants used _SC_PAGE_SIZE
authorEric Andersen <andersen@codepoet.org>
Thu, 15 Jul 2004 08:22:48 +0000 (08:22 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 15 Jul 2004 08:22:48 +0000 (08:22 -0000)
instead, but we are not such a system and should not propagate such things.

libpthread/linuxthreads/internals.h

index bd36264..d4a9b85 100644 (file)
@@ -317,7 +317,7 @@ static inline int invalid_handle(pthread_handle h, pthread_t id)
 /* The page size we can get from the system.  This should likely not be
    changed by the machine file but, you never know.  */
 #ifndef PAGE_SIZE
-#define PAGE_SIZE  (sysconf (_SC_PAGE_SIZE))
+#define PAGE_SIZE  (sysconf (_SC_PAGESIZE))
 #endif
 
 /* The max size of the thread stack segments.  If the default