summarylogtreecommitdiffstats
path: root/gcc-4.7.patch
diff options
context:
space:
mode:
authorBalló György2013-12-13 15:58:58 +0000
committerBalló György2013-12-13 15:58:58 +0000
commit3016282bea050c6b89ca131d25bf798616a87e0b (patch)
treea11005ec5214c0300e0f437d1b6ef0ea815e2022 /gcc-4.7.patch
parent618c67820c7657ec0da1e9f8474d13b5cff7b304 (diff)
downloadaur-3016282bea050c6b89ca131d25bf798616a87e0b.tar.gz
Remove static lib, fix build with gcc 4.7
Diffstat (limited to 'gcc-4.7.patch')
-rw-r--r--gcc-4.7.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc-4.7.patch b/gcc-4.7.patch
new file mode 100644
index 000000000000..3b11e0b92b7d
--- /dev/null
+++ b/gcc-4.7.patch
@@ -0,0 +1,18 @@
+diff -Naur lockdev-1.0.3.orig/src/ttylock.h lockdev-1.0.3/src/ttylock.h
+--- lockdev-1.0.3.orig/src/ttylock.h 2013-12-13 15:34:52.195877321 +0000
++++ lockdev-1.0.3/src/ttylock.h 2013-12-13 15:38:16.131190480 +0000
+@@ -36,10 +36,10 @@
+
+ /* API of the library */
+
+-int ttylock (char * devname);
+-int ttywait (char * devname);
+-int ttyunlock (char * devname);
+-int ttylocked (char * devname);
++static inline int ttylock (char * devname);
++static inline int ttywait (char * devname);
++static inline int ttyunlock (char * devname);
++static inline int ttylocked (char * devname);
+
+
+ static inline int