[Pkg-wmaker-commits] [wmbubble] 162/207: New patch to add declaration of init_stuff() to sys_include.h.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit 07dab8787798f0c3f0eef6d4f71eefb0494b893d
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sun Jul 27 17:17:15 2014 -0600

    New patch to add declaration of init_stuff() to sys_include.h.
---
 debian/patches/add-init_stuff-to-sys_include.h.patch | 20 ++++++++++++++++++++
 debian/patches/series                                |  1 +
 2 files changed, 21 insertions(+)

diff --git a/debian/patches/add-init_stuff-to-sys_include.h.patch b/debian/patches/add-init_stuff-to-sys_include.h.patch
new file mode 100644
index 0000000..370c575
--- /dev/null
+++ b/debian/patches/add-init_stuff-to-sys_include.h.patch
@@ -0,0 +1,20 @@
+Description: Add init_stuff to sys_include.h for kFreeBSD.
+ A function init_stuff() is defined in sys_freebsd.c which is not defined
+ in any of the other sys_*.c files.  It is only called from bubblemon.c when
+ the FreeBSD kernel is being used, but is not declared in sys_include.h,
+ resulting in a implicit-declaration build warning.  This patch fixes this
+ issue by adding the appropriate lines to sys_include.h.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: <2014-07-27>
+
+--- wmbubble-1.50.orig/include/sys_include.h
++++ wmbubble-1.50/include/sys_include.h
+@@ -24,4 +24,8 @@ int system_cpu(void);		/* return total C
+ void system_memory(void);	/* set memory related values in BubbleMonData */
+ void system_loadavg(void);	/* get current load average and put into
+ 				   bm->loadavg[].{i,f} */
++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++int init_stuff();
++#endif
++
+ #endif /* _SYS_INCLUDE_H_ */
diff --git a/debian/patches/series b/debian/patches/series
index 58970a7..3c11191 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 fixes-for-kfreebsd.patch
 fix-compiler-flags.patch
+add-init_stuff-to-sys_include.h.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list