[BACK]Return to patch-poptint.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / popt / patches

File: [cvs.NetBSD.org] / pkgsrc / devel / popt / patches / Attic / patch-poptint.h (download)

Revision 1.2, Sun May 5 23:16:06 2019 UTC (3 years, 8 months ago) by rjs
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2
Changes since 1.1: +7 -3 lines

Fix compat symbol link warning.

$NetBSD: patch-poptint.h,v 1.2 2019/05/05 23:16:06 rjs Exp $

Don't include stdint.h if it does not exist.  Fixes PR#44770

--- poptint.h.orig	2010-01-19 00:39:10.000000000 +0000
+++ poptint.h
@@ -9,7 +9,13 @@
 #ifndef H_POPTINT
 #define H_POPTINT
 
+#ifdef HAVE_STDINT_H
 #include <stdint.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 
 /**
  * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.