pkgsrc-WIP-changes archive

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

codelite: Handle netbsd specific fpos_t



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Jun 15 12:07:01 2016 +0200
Changeset:	dd6618698f4da6af0f2959d9eac4d719ff1bbaac

Modified Files:
	codelite/distinfo
Added Files:
	codelite/patches/patch-sdk_codelite__indexer_libctags_read.c

Log Message:
codelite: Handle netbsd specific fpos_t

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=dd6618698f4da6af0f2959d9eac4d719ff1bbaac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 codelite/distinfo                                  |  1 +
 .../patch-sdk_codelite__indexer_libctags_read.c    | 23 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)

diffs:
diff --git a/codelite/distinfo b/codelite/distinfo
index 782539d..9f05502 100644
--- a/codelite/distinfo
+++ b/codelite/distinfo
@@ -4,4 +4,5 @@ SHA1 (codelite-9.1.tar.gz) = a177e3c04612d96918361fcaae226e23f68be90a
 RMD160 (codelite-9.1.tar.gz) = b0ccb31eeadc5a342eba3a562044131868f7ceca
 SHA512 (codelite-9.1.tar.gz) = e7caa895c5ba62def98a50a46132940f7135c77ebe3d2fce7f1d83755ed6ce7dfc6aeb013a665b28eb969afcc1004f49284a253297d2317e72bda5f3945ce978
 Size (codelite-9.1.tar.gz) = 90366396 bytes
+SHA1 (patch-sdk_codelite__indexer_libctags_read.c) = 058871e134c0a5e112104a5095d3bed62e70f42a
 SHA1 (patch-sdk_wxsqlite3_configure) = 212eb522fe97a9d44f04fe183087210ac8c34372
diff --git a/codelite/patches/patch-sdk_codelite__indexer_libctags_read.c b/codelite/patches/patch-sdk_codelite__indexer_libctags_read.c
new file mode 100644
index 0000000..3425b6a
--- /dev/null
+++ b/codelite/patches/patch-sdk_codelite__indexer_libctags_read.c
@@ -0,0 +1,23 @@
+$NetBSD$
+
+--- sdk/codelite_indexer/libctags/read.c.orig	2016-01-30 10:49:18.000000000 +0000
++++ sdk/codelite_indexer/libctags/read.c
+@@ -605,6 +605,9 @@ extern int readChars (char *buffer, size
+ #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
+ 	if(location < 0)
+ 		return 0;
++#elif defined(__NetBSD__)
++	if(location._pos < 0)
++		return 0;
+ #else
+ 	if(location.__pos < 0)
+ 		return 0;
+@@ -619,6 +622,8 @@ extern int readChars (char *buffer, size
+ 
+ #if defined(__WXMSW__) || defined(__APPLE__) || defined(__FreeBSD__)
+ 	sizeToRead = endPos - location;
++#elif defined(__NetBSD__)
++	sizeToRead = endPos._pos - location._pos;
+ #else
+ 	sizeToRead = endPos.__pos - location.__pos;
+ #endif


Home | Main Index | Thread Index | Old Index