summaryrefslogtreecommitdiff
path: root/x11/qt3-libs/patches/patch-ia
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2004-10-13 15:15:52 +0000
committertv <tv@pkgsrc.org>2004-10-13 15:15:52 +0000
commit257ee9c940016d684cf628eae087f86d17e939b6 (patch)
tree7db8c968fdaea0704279b31ef2a426e3ef0d008f /x11/qt3-libs/patches/patch-ia
parentdd6e5ecb4c39577e2874ba437263adff94774e73 (diff)
downloadpkgsrc-257ee9c940016d684cf628eae087f86d17e939b6.tar.gz
Another Interix-only fix: add -ldb, and since Qt incorrectly #includes
system C headers without extern "C", add extern "C" protection.
Diffstat (limited to 'x11/qt3-libs/patches/patch-ia')
-rw-r--r--x11/qt3-libs/patches/patch-ia7
1 files changed, 5 insertions, 2 deletions
diff --git a/x11/qt3-libs/patches/patch-ia b/x11/qt3-libs/patches/patch-ia
index bd97b10c5ac..a3edeb76cea 100644
--- a/x11/qt3-libs/patches/patch-ia
+++ b/x11/qt3-libs/patches/patch-ia
@@ -1,8 +1,8 @@
-$NetBSD: patch-ia,v 1.1 2004/10/13 02:08:43 tv Exp $
+$NetBSD: patch-ia,v 1.2 2004/10/13 15:15:53 tv Exp $
--- mkspecs/interix-g++/qplatformdefs.h.orig Tue Oct 12 16:43:29 2004
+++ mkspecs/interix-g++/qplatformdefs.h
-@@ -0,0 +1,82 @@
+@@ -0,0 +1,85 @@
+#ifndef QPLATFORMDEFS_H
+#define QPLATFORMDEFS_H
+
@@ -10,6 +10,8 @@ $NetBSD: patch-ia,v 1.1 2004/10/13 02:08:43 tv Exp $
+
+#include "qglobal.h"
+
++extern "C" { // it is nonstandard to include C headers without protection!
++
+// Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs
+
+#include <unistd.h>
@@ -48,6 +50,7 @@ $NetBSD: patch-ia,v 1.1 2004/10/13 02:08:43 tv Exp $
+#include <arpa/nameser.h>
+#include <resolv.h>
+
++}; // extern "C"
+
+#if !defined(QT_NO_COMPAT)
+#define QT_STATBUF struct stat