summaryrefslogtreecommitdiff
path: root/libraries/lockdev/lockdev.c.patch
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2012-12-26 08:54:33 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2012-12-26 21:36:44 +0100
commitdda9331bd7afed45c8d0ef90050992d836977120 (patch)
tree7789f6ae695364b635d0bcb82337b4648401a45c /libraries/lockdev/lockdev.c.patch
parent95a9ba57f834b49c1d82446ed668dfc88088e344 (diff)
downloadslackbuilds-dda9331bd7afed45c8d0ef90050992d836977120.tar.gz
libraries/lockdev: Added (device-locking library).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/lockdev/lockdev.c.patch')
-rw-r--r--libraries/lockdev/lockdev.c.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/libraries/lockdev/lockdev.c.patch b/libraries/lockdev/lockdev.c.patch
new file mode 100644
index 0000000000..a83f90e001
--- /dev/null
+++ b/libraries/lockdev/lockdev.c.patch
@@ -0,0 +1,26 @@
+--- lockdev-1.0.3.orig/src/lockdev.c
++++ lockdev-1.0.3/src/lockdev.c
+@@ -125,14 +125,23 @@
+ #include <sys/file.h>
+ #if defined (__GNU_LIBRARY__)
+ # include <sys/sysmacros.h>
++#ifdef __GNU__
++# define MAJOR(dev) major (dev)
++# define MINOR(dev) minor (dev)
++#else
+ # define MAJOR(dev) gnu_dev_major (dev)
+ # define MINOR(dev) gnu_dev_minor (dev)
++#endif
+ #else
+ # error "put here a define for MAJOR and MINOR"
+ #endif
+
+ #include "lockdev.h"
+
++#ifndef MAXPATHLEN
++#define MAXPATHLEN 4096
++#endif
++
+ /*
+ * PROTOTYPES for internal functions
+ * all internal functions names start with _dl_