public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in mail-mta/nullmailer/files: nullmailer-1.13-unistd.h.patch
@ 2015-02-02 11:50 Justin Lecher (jlec)
  0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2015-02-02 11:50 UTC (permalink / raw
  To: gentoo-commits

jlec        15/02/02 11:50:13

  Added:                nullmailer-1.13-unistd.h.patch
  Log:
  mail-mta/nullmailer: Import header in portable way, #538482
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

Revision  Changes    Path
1.1                  mail-mta/nullmailer/files/nullmailer-1.13-unistd.h.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/files/nullmailer-1.13-unistd.h.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/nullmailer/files/nullmailer-1.13-unistd.h.patch?rev=1.1&content-type=text/plain

Index: nullmailer-1.13-unistd.h.patch
===================================================================
From 5e9316c669e752fcd9058b28952919bccd967640 Mon Sep 17 00:00:00 2001
From: "Anthony G. Basile" <blueness@gentoo.org>
Date: Sat, 31 Jan 2015 23:55:48 +0000
Subject: [PATCH] lib/fdbuf/fdbuf.h: include <unistd.h>

class fdobuf in lib/fdbuf/fdobuf.h makes use of uid_t and gid_t,
but these are defined in <unistd.h> according to POSIX.  With libc's
that adhere strictly to standards, like musl, this breaks the build.

We add <unistd.h> to fdbuf.h which is included by fdbuf.h.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
---
 lib/fdbuf/fdbuf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/fdbuf/fdbuf.h b/lib/fdbuf/fdbuf.h
index 4b0e9cb..0054b01 100644
--- a/lib/fdbuf/fdbuf.h
+++ b/lib/fdbuf/fdbuf.h
@@ -20,6 +20,7 @@
 #include "config.h"
 #include <string.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 #ifdef _REENTRANT
 #include <pthread.h>





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-02 11:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-02 11:50 [gentoo-commits] gentoo-x86 commit in mail-mta/nullmailer/files: nullmailer-1.13-unistd.h.patch Justin Lecher (jlec)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox