Package: openscap
Version: 0.5.12-2
Severity: serious
Tags: patch
User: debian-...@lists.debian.org
Usertags: kfreebsd


Hi,

the current version fails to build on GNU/kFreeBSD,
the 0.5.8-1 have been fine.

Please find attached patch with needed tweaks.

It would also be nice if you can ask upstream
to include this changes.

Thanks in advance

                        Petr
--- openscap-0.5.12.orig/src/OVAL/probes/unix/runlevel.c
+++ openscap-0.5.12/src/OVAL/probes/unix/runlevel.c
@@ -79,7 +79,7 @@
 
 static int get_runlevel (struct runlevel_req *req, struct runlevel_rep **rep);
 
-#if defined(__linux__)
+#if defined(__linux__) || defined(__GLIBC__)
 static int get_runlevel_redhat (struct runlevel_req *req, struct runlevel_rep **rep)
 {
 	const char runlevel_list[] = {'0', '1', '2', '3', '4', '5', '6'};
--- openscap-0.5.12.orig/tests/OVAL/SEAP/sexp_parser.c
+++ openscap-0.5.12/tests/OVAL/SEAP/sexp_parser.c
@@ -49,7 +49,7 @@
 
 #if defined(__FreeBSD__)
                         input = fgetln (stdin, &inlen);
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__GLIBC__)
                         getline (&input, &inlen, stdin);
 #else
 # error "FIXME"

Reply via email to