File: gnu89-inline.diff

package info (click to toggle)
ruby-sigar 0.7.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,272 kB
  • sloc: ansic: 24,014; perl: 2,977; ruby: 99; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 617 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Matthias Klose <doko@ubuntu.com>
Date: Wed, 9 Sep 2015 15:54:10 +0000
Subject: Fix build with GCC 5

Bug-Debian: https://bugs.debian.org/798434
---
 include/sigar_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/sigar_private.h b/include/sigar_private.h
index 484f830..c1e2a4a 100644
--- a/include/sigar_private.h
+++ b/include/sigar_private.h
@@ -74,7 +74,7 @@
 #if defined(WIN32)
 #   define SIGAR_INLINE __inline
 #elif defined(__GNUC__)
-#   define SIGAR_INLINE inline
+#   define SIGAR_INLINE __attribute__ ((gnu_inline)) inline
 #else
 #   define SIGAR_INLINE
 #endif