1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/java-sigar/fix-inlined-functions-definition.patch
2019-01-26 16:27:22 +01:00

29 lines
1.2 KiB
Diff

From d5c7a43eba53a421908bfcc5d84419fbab1b2528 Mon Sep 17 00:00:00 2001
From: AlexYaruki <alexyaruki@gmail.com>
Date: Fri, 2 Sep 2016 12:45:46 +0200
Subject: [PATCH] Fix to inlined functions definition
Fixes:
Error relocating bindings/java/sigar-bin/lib/libsigar-amd64-linux.so: sigar_skip_multiple_token: symbol not found
Error relocating bindings/java/sigar-bin/lib/libsigar-amd64-linux.so: sigar_skip_token: symbol not found
diff --git a/include/sigar_util.h b/include/sigar_util.h
index b3c4dd7d..9545d0f6 100644
--- a/include/sigar_util.h
+++ b/include/sigar_util.h
@@ -75,11 +75,11 @@ int sigar_inet_ntoa(sigar_t *sigar,
struct hostent *sigar_gethostbyname(const char *name,
sigar_hostent_t *data);
-SIGAR_INLINE char *sigar_skip_line(char *buffer, int buflen);
+extern SIGAR_INLINE char *sigar_skip_line(char *buffer, int buflen);
-SIGAR_INLINE char *sigar_skip_token(char *p);
+extern SIGAR_INLINE char *sigar_skip_token(char *p);
-SIGAR_INLINE char *sigar_skip_multiple_token(char *p, int count);
+extern SIGAR_INLINE char *sigar_skip_multiple_token(char *p, int count);
char *sigar_getword(char **line, char stop);