[PATCH] include/sudo_compat.h: include <sys/types.h> for uid_t and gid_t.

"Anthony G. Basile" <[email protected]>
Newsgroups gmane.comp.tools.sudo.devel
Message-ID <[email protected]>
# HG changeset patch
# User Anthony G. Basile <[email protected]>
# Date 1428537288 14400
#      Wed Apr 08 19:54:48 2015 -0400
# Node ID 31ab3486028abd0a82135cd044fa338f3623f294
# Parent  2eeeb74b91747f9c88276e8afdbd746ba42a188e
include/sudo_compat.h: include <sys/types.h> for uid_t and gid_t.

sudo_compat.h makes reference to uid_t and gid_t but does not include
<sys/types.h>.  Because of header stacking this works on glibc systems,
but fails on both uClibc and musl.  So we add this include as required
by POSIX.

See: 
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html

diff -r 2eeeb74b9174 -r 31ab3486028a include/sudo_compat.h
--- a/include/sudo_compat.h	Wed Apr 08 15:29:59 2015 -0600
+++ b/include/sudo_compat.h	Wed Apr 08 19:54:48 2015 -0400
@@ -27,6 +27,7 @@
  # include <stddef.h>
  #endif
  #include <stdarg.h>
+#include <sys/types.h>

  /*
   * Macros and functions that may be missing on some operating systems.
-- 
Anthony G. Basile, Ph. D.
Chair of Information Technology
D'Youville College
Buffalo, NY 14201
(716) 829-8197
____________________________________________________________
sudo-workers mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
http://www.sudo.ws/mailman/listinfo/sudo-workers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.