32 lines
1.4 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../fam/fam-2.7.0-gcc41.patch
# Copyright (C) 2010 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
Fix to build with gcc >= 4.1
diff -ruN fam-2.7.0-dnotify/src/DNotify.h fam-2.7.0-dnotify-gcc41/src/DNotify.h
--- fam-2.7.0-dnotify/src/DNotify.h 2010-08-29 13:09:03.000000000 +0200
+++ fam-2.7.0-dnotify-gcc41/src/DNotify.h 2010-08-29 14:00:44.000000000 +0200
@@ -59,8 +59,8 @@
static int pipe_write_fd;
static int pipe_read_fd;
static int change_queue[QUEUESIZE];
- static volatile sig_atomic_t DNotify::queue_overflowed;
- static volatile sig_atomic_t DNotify::queue_changed;
+ static volatile sig_atomic_t queue_overflowed;
+ static volatile sig_atomic_t queue_changed;
static volatile int queue_head; // Only modified by read handler
static volatile int queue_tail; // Only modified by signal handler
static EventHandler ehandler;