Package: libopensync1exp7-dev
Version: 0.39-4
Severity: important
Tags: patch

gcc 4.4 preprocessor is more strict about the #elif directive, see 
http://www.cyrius.com/journal/gcc/gcc-4.4-preprocessor-errors for details.

This causes programs which include opensync.h header file (either directly or 
indirectly) to not build using gcc 4.4

The attached patch fixes those build errors.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (600, 'testing'), (400, 'unstable'), (100, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.35-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libopensync1exp7-dev depends on:
ii  libglib2.0-dev              2.24.2-1     Development files for the GLib lib
ii  libopensync1exp7            0.39-4       Synchronisation framework for emai
ii  libsqlite3-dev              3.7.2-1      SQLite 3 development files
ii  libxml2-dev                 2.7.7.dfsg-4 Development files for the GNOME XM

libopensync1exp7-dev recommends no packages.

libopensync1exp7-dev suggests no packages.

-- no debconf information
--- opensync.h.backup	2010-09-23 02:58:55.000000000 +0200
+++ opensync.h	2010-09-23 02:59:51.000000000 +0200
@@ -45,11 +45,11 @@
 #define __func__ __FUNCTION__
 #define OSYNC_EXPORT __declspec(dllexport)
 
-#elif __GNUC__ 
+#elif defined(__GNUC__)
 #include <unistd.h>
 #define OSYNC_EXPORT __attribute__ ((visibility("default")))
 
-#elif __sun 
+#elif defined(__sun)
 #include <unistd.h>
 #define OSYNC_EXPORT __global 
 

Reply via email to