pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/qpasswd Handle _XOPEN_SOURCE on SunOS. Should...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eec7e1d29cca
branches:  trunk
changeset: 389016:eec7e1d29cca
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Mon Dec 17 16:32:18 2018 +0000

description:
Handle _XOPEN_SOURCE on SunOS. Should fix SmartOS build.

diffstat:

 sysutils/qpasswd/distinfo                |   4 ++--
 sysutils/qpasswd/patches/patch-qpasswd.h |  21 ++++++++++++++++++---
 2 files changed, 20 insertions(+), 5 deletions(-)

diffs (47 lines):

diff -r c070a668106f -r eec7e1d29cca sysutils/qpasswd/distinfo
--- a/sysutils/qpasswd/distinfo Mon Dec 17 16:31:12 2018 +0000
+++ b/sysutils/qpasswd/distinfo Mon Dec 17 16:32:18 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2018/08/05 15:00:46 schmonz Exp $
+$NetBSD: distinfo,v 1.2 2018/12/17 16:32:18 schmonz Exp $
 
 SHA1 (qpasswd-0.5.tar.bz2) = 72cb41406cf1c3542fc70aefbbde74e7c3dd4cf5
 RMD160 (qpasswd-0.5.tar.bz2) = 0b596c1c487bd9d7c45d2710687f17e2b509a64d
@@ -6,4 +6,4 @@
 Size (qpasswd-0.5.tar.bz2) = 71473 bytes
 SHA1 (patch-Makefile) = c0da81b6a27bc75c43e04bd88c7555ac67352ac9
 SHA1 (patch-params.h) = 5836dc6d86b64efb54f23a8ea5558b3d00bb84ce
-SHA1 (patch-qpasswd.h) = 1d63eb7f55022d1c6f8dea665c5472346c992157
+SHA1 (patch-qpasswd.h) = 44e95989e51bec9620e587a27613ad6728af89e0
diff -r c070a668106f -r eec7e1d29cca sysutils/qpasswd/patches/patch-qpasswd.h
--- a/sysutils/qpasswd/patches/patch-qpasswd.h  Mon Dec 17 16:31:12 2018 +0000
+++ b/sysutils/qpasswd/patches/patch-qpasswd.h  Mon Dec 17 16:32:18 2018 +0000
@@ -1,10 +1,25 @@
-$NetBSD: patch-qpasswd.h,v 1.1 2018/08/05 15:00:46 schmonz Exp $
+$NetBSD: patch-qpasswd.h,v 1.2 2018/12/17 16:32:19 schmonz Exp $
 
-Avoid Linuxisms.
+Avoid Linuxisms. Handle _XOPEN_SOURCE on SunOS.
 
 --- qpasswd.h.orig     2004-01-13 16:10:18.000000000 +0000
 +++ qpasswd.h
-@@ -8,14 +8,13 @@
+@@ -1,21 +1,28 @@
+ #ifndef QP_QPASSWD_H
+ #define QP_QPASSWD_H
+ 
++#if defined(__sun) && !defined(_XOPEN_SOURCE)
++#  if (__STDC_VERSION__-0 < 199901L)
++#define _XOPEN_SOURCE 500
++#  else
++#define _XOPEN_SOURCE 600
++#  endif
++#else
+ #define _XOPEN_SOURCE  /* needed for crypt(3) */
++#endif
+ #define _BSD_SOURCE    /* needed by initgroups(3) + fchdir(2) */
+ 
+ #include <sys/types.h>
  #include <sys/time.h>
  #include <sys/stat.h>
  #include <sys/mman.h>



Home | Main Index | Thread Index | Old Index