# --- SDE-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../musl/pkg_patch/lvm2/lvm2-musl-0003-fcntl.h.patch # Copyright (C) 2012 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 --- dmeventd.c: In function '_open_fifos': dmeventd.c:1294:2: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration] dmeventd.c:1294:2: warning: nested extern declaration of 'open' [-Wnested-externs] dmeventd.c:1294:48: error: 'O_RDWR' undeclared (first use in this function) dmeventd.c:1294:48: note: each undeclared identifier is reported only once for each function it appears in dmeventd.c: In function '_handle_preloaded_fifo': dmeventd.c:1665:2: warning: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration] dmeventd.c:1665:2: warning: nested extern declaration of 'fcntl' [-Wnested-externs] dmeventd.c:1665:25: error: 'F_GETFD' undeclared (first use in this function) dmeventd.c:1668:14: error: 'FD_CLOEXEC' undeclared (first use in this function) dmeventd.c:1679:16: error: 'F_SETFD' undeclared (first use in this function) dmeventd.c: In function '_daemonize': dmeventd.c:1817:25: error: 'O_RDONLY' undeclared (first use in this function) dmeventd.c:1818:25: error: 'O_WRONLY' undeclared (first use in this function) --- a/daemons/dmeventd/dmeventd.c 2012-11-24 19:08:48.981918074 +0100 +++ b/daemons/dmeventd/dmeventd.c 2012-11-24 19:09:25.822750433 +0100 @@ -37,6 +37,7 @@ #include #include #include /* for htonl, ntohl */ +#include #ifdef linux /*