mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-01 01:00:03 +01:00
dda9331bd7
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
26 lines
590 B
Diff
26 lines
590 B
Diff
--- 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_
|