pkgsrc/chat/xchat-systray-integration/patches/patch-ak
minskim acb94c0b93 Do not define variables in headers; define them in .c files instead.
Otherwise, they cause link errors on Darwin.
2006-07-06 22:04:03 +00:00

56 lines
1.5 KiB
Text

$NetBSD: patch-ak,v 1.1 2006/07/06 22:04:03 minskim Exp $
--- src/events.h.orig 2004-04-30 05:38:10.000000000 -0700
+++ src/events.h
@@ -5,25 +5,25 @@
#include "libs/traycoreengine.h"
#include "data_manager.h"
-gint flash_id;
+extern gint flash_id;
#ifndef _WIN32_
- GdkPixbuf *icontype;
- GdkPixbuf *pix_xchat_red;
- GdkPixbuf *pix_xchat_blue;
- GdkPixbuf *pix_xchat_dcc;
- GdkPixbuf *pix_xchat_disc;
- GdkPixbuf *pix_xchat_inv;
- GdkPixbuf *pix_xchat_notin;
- GdkPixbuf *pix_xchat_notout;
+ extern GdkPixbuf *icontype;
+ extern GdkPixbuf *pix_xchat_red;
+ extern GdkPixbuf *pix_xchat_blue;
+ extern GdkPixbuf *pix_xchat_dcc;
+ extern GdkPixbuf *pix_xchat_disc;
+ extern GdkPixbuf *pix_xchat_inv;
+ extern GdkPixbuf *pix_xchat_notin;
+ extern GdkPixbuf *pix_xchat_notout;
#else
- HICON icontype;
- HICON pix_xchat_red;
- HICON pix_xchat_blue;
- HICON pix_xchat_dcc;
- HICON pix_xchat_disc;
- HICON pix_xchat_inv;
- HICON pix_xchat_notin;
- HICON pix_xchat_notout;
+ extern HICON icontype;
+ extern HICON pix_xchat_red;
+ extern HICON pix_xchat_blue;
+ extern HICON pix_xchat_dcc;
+ extern HICON pix_xchat_disc;
+ extern HICON pix_xchat_inv;
+ extern HICON pix_xchat_notin;
+ extern HICON pix_xchat_notout;
#endif
@@ -41,7 +41,7 @@ int noti_hilight_cb(char *word[], void *
void flash_stop();
void flash_start();
gboolean flash_timeout(gpointer userdata);
-char* motivation;
+extern char* motivation;
#endif