diff options
author | taca <taca@pkgsrc.org> | 2007-09-07 05:42:25 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2007-09-07 05:42:25 +0000 |
commit | 3ed7e51ad2c4d0914c2573f3f92e21313f7e49d3 (patch) | |
tree | a079eb170de24f55ffc4cc795fd3bcf8a4d90540 /net/synergy/patches | |
parent | 98c48a3d9847ec6982b703d198e8280262d49bec (diff) | |
download | pkgsrc-3ed7e51ad2c4d0914c2573f3f92e21313f7e49d3.tar.gz |
Fix build problem with gcc4 (on NetBSD 4/current).
Diffstat (limited to 'net/synergy/patches')
-rw-r--r-- | net/synergy/patches/patch-ac | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net/synergy/patches/patch-ac b/net/synergy/patches/patch-ac new file mode 100644 index 00000000000..284fb44bb92 --- /dev/null +++ b/net/synergy/patches/patch-ac @@ -0,0 +1,37 @@ +$NetBSD: patch-ac,v 1.1 2007/09/07 05:42:25 taca Exp $ + +Fix compile problem with gcc4. +CXWindowsScreen.cpp: In member function 'void CXWindowsScreen::openIM()': +CXWindowsScreen.cpp:990: warning: missing sentinel in function call +CXWindowsScreen.cpp:1013: warning: missing sentinel in function call +CXWindowsScreen.cpp:1022: warning: missing sentinel in function call + +--- lib/platform/CXWindowsScreen.cpp.orig 2006-04-02 19:16:39.000000000 +0000 ++++ lib/platform/CXWindowsScreen.cpp +@@ -987,7 +987,7 @@ CXWindowsScreen::openIM() + // find the appropriate style. synergy supports XIMPreeditNothing + // only at the moment. + XIMStyles* styles; +- if (XGetIMValues(im, XNQueryInputStyle, &styles, NULL) != NULL || ++ if (XGetIMValues(im, XNQueryInputStyle, &styles, (char *)NULL) != NULL || + styles == NULL) { + LOG((CLOG_WARN "cannot get IM styles")); + XCloseIM(im); +@@ -1010,7 +1010,7 @@ CXWindowsScreen::openIM() + } + + // create an input context for the style and tell it about our window +- XIC ic = XCreateIC(im, XNInputStyle, style, XNClientWindow, m_window, NULL); ++ XIC ic = XCreateIC(im, XNInputStyle, style, XNClientWindow, m_window, (char *)NULL); + if (ic == NULL) { + LOG((CLOG_WARN "cannot create IC")); + XCloseIM(im); +@@ -1019,7 +1019,7 @@ CXWindowsScreen::openIM() + + // find out the events we must select for and do so + unsigned long mask; +- if (XGetICValues(ic, XNFilterEvents, &mask, NULL) != NULL) { ++ if (XGetICValues(ic, XNFilterEvents, &mask, (char *)NULL) != NULL) { + LOG((CLOG_WARN "cannot get IC filter events")); + XDestroyIC(ic); + XCloseIM(im); |