pkgsrc/devel/popt/patches/patch-src_poptint.h
tnn fda9554c2e popt: update to 1.18
Replace HOMEPAGE and MASTER_SITE, the old rpm5.org site seems dead & broken

Changes from popt 1.16
  fix an ugly and ancient security issue with popt failing to
    drop privileges on alias exec from a SUID/SGID program
  perform rudimentary sanity checks when reading in popt config files
  collect accumulated misc fixes (memleaks etc) from distros
  convert translations to utf-8 encoding
  convert old postscript documentation to pdf
  dust off ten years worth of autotools sediment
  reorganize and clean up the source tree for clarity
  remove the obnoxious splint annotations from the sources
2020-08-15 01:02:42 +00:00

20 lines
454 B
C

$NetBSD: patch-src_poptint.h,v 1.1 2020/08/15 01:02:42 tnn Exp $
Don't include stdint.h if it does not exist. Fixes PR#44770
--- src/poptint.h.orig 2010-01-19 00:39:10.000000000 +0000
+++ src/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.