This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Add missing #include for MIN/MAX users.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Tue, 1 Jul 2014 15:05:21 -0700 (PDT)
- Subject: [COMMITTED PATCH] Add missing #include for MIN/MAX users.
- Authentication-results: sourceware.org; auth=none
2014-07-01 Roland McGrath <roland@hack.frob.com>
* sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
* nptl/pthread_mutex_lock.c: Likewise.
* nptl/pthread_mutex_timedlock.c: Likewise.
* nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
--- a/nptl/pthread_mutex_lock.c
+++ b/nptl/pthread_mutex_lock.c
@@ -20,6 +20,7 @@
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
+#include <sys/param.h>
#include <not-cancel.h>
#include "pthreadP.h"
#include <lowlevellock.h>
--- a/nptl/pthread_mutex_timedlock.c
+++ b/nptl/pthread_mutex_timedlock.c
@@ -19,6 +19,7 @@
#include <assert.h>
#include <errno.h>
#include <time.h>
+#include <sys/param.h>
#include "pthreadP.h"
#include <lowlevellock.h>
#include <not-cancel.h>
--- a/nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
+++ b/nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <sysdep.h>
#include <sys/types.h>
+#include <sys/param.h>
#include <shlib-compat.h>
--- a/sysdeps/unix/sysv/linux/sysconf.c
+++ b/sysdeps/unix/sysv/linux/sysconf.c
@@ -23,6 +23,7 @@
#include <time.h>
#include <unistd.h>
#include <sys/resource.h>
+#include <sys/param.h>
#include <not-cancel.h>
#include <ldsodefs.h>