Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 492150 Details for
Bug 629788
sys-apps/openrc-0.28 build fixes for uclibc-ng
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
openrc-0.28-uclibc-r1.patch
openrc-0.28-uclibc-r1.patch (text/plain), 5.86 KB, created by
René Rhéaume
on 2017-09-03 17:13:40 UTC
(
hide
)
Description:
openrc-0.28-uclibc-r1.patch
Filename:
MIME Type:
Creator:
René Rhéaume
Created:
2017-09-03 17:13:40 UTC
Size:
5.86 KB
patch
obsolete
>--- openrc-0.28/src/libeinfo/libeinfo.c >+++ openrc-0.28-uclibc/src/libeinfo/libeinfo.c >@@ -29,6 +29,11 @@ const char libeinfo_copyright[] = "Copyr > #include <stdbool.h> > #include <stdio.h> > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > #include <strings.h> > #include <syslog.h> >--- openrc-0.28/src/librc/librc.h >+++ openrc-0.28-uclibc/src/librc/librc.h >@@ -39,6 +39,9 @@ > #include <stdbool.h> > #include <stdio.h> > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# define __USE_BSD >+#endif > #include <string.h> > #include <strings.h> > #include <time.h> >--- openrc-0.28/src/rc/_usage.c >+++ openrc-0.28-uclibc/src/rc/_usage.c >@@ -13,6 +13,12 @@ > #include <ctype.h> > #include <stdio.h> > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif >+#include <string.h> > #include "rc.h" > #include "rc-misc.h" > #include "_usage.h" >--- openrc-0.28/src/rc/do_e.c >+++ openrc-0.28-uclibc/src/rc/do_e.c >@@ -13,6 +13,11 @@ > #define SYSLOG_NAMES > > #include <sys/types.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <sys/time.h> > > #include <errno.h> >@@ -20,8 +25,18 @@ > #include <inttypes.h> > #include <stdbool.h> > #include <stdio.h> >+#ifdef __UCLIBC__ >+# ifdef __USE_BSD >+# undef __USE_BSD >+# endif >+#endif > #include <stdlib.h> > #include <signal.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > #include <syslog.h> > #include <time.h> >--- openrc-0.28/src/rc/fstabinfo.c >+++ openrc-0.28-uclibc/src/rc/fstabinfo.c >@@ -21,6 +21,11 @@ > #include <getopt.h> > #include <stdio.h> > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > #include <unistd.h> > >--- openrc-0.28/src/rc/kill_all.c >+++ openrc-0.28-uclibc/src/rc/kill_all.c >@@ -23,6 +23,11 @@ > #include <signal.h> > #include <stdio.h> > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > #include <syslog.h> > #include <unistd.h> >--- openrc-0.28/src/rc/mountinfo.c >+++ openrc-0.28-uclibc/src/rc/mountinfo.c >@@ -37,6 +37,11 @@ > #include <regex.h> > #include <stdio.h> > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > > #include "einfo.h" >--- openrc-0.28/src/rc/openrc-init.c >+++ openrc-0.28-uclibc/src/rc/openrc-init.c >@@ -35,6 +35,10 @@ > #include "rc-wtmp.h" > #include "version.h" > >+#ifndef RB_KEXEC >+# define RB_KEXEC 0x45584543 >+#endif >+ > static const char *rc_default_runlevel = "default"; > > static pid_t do_openrc(const char *runlevel) >--- openrc-0.28/src/rc/openrc-run.c >+++ openrc-0.28-uclibc/src/rc/openrc-run.c >@@ -33,6 +33,11 @@ > #include <signal.h> > #include <stdio.h> > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > #include <termios.h> > #include <time.h> >--- openrc-0.28/src/rc/rc-depend.c >+++ openrc-0.28-uclibc/src/rc/rc-depend.c >@@ -26,6 +26,11 @@ > #include <stdbool.h> > #include <stdio.h> > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > #include <time.h> > #include <unistd.h> >--- openrc-0.28/src/rc/rc-misc.c >+++ openrc-0.28-uclibc/src/rc/rc-misc.c >@@ -30,6 +30,11 @@ > #include <signal.h> > #include <stdio.h> > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > #include <time.h> > #include <unistd.h> >--- openrc-0.28/src/rc/rc-plugin.c >+++ openrc-0.28-uclibc/src/rc/rc-plugin.c >@@ -26,6 +26,11 @@ > #include <signal.h> > #include <stdio.h> > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > #include <unistd.h> > >--- openrc-0.28/src/rc/rc.c >+++ openrc-0.28-uclibc/src/rc/rc.c >@@ -40,6 +40,11 @@ const char rc_copyright[] = "Copyright ( > #include <stdio.h> > #include <stdlib.h> > #include <signal.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > #include <strings.h> > #include <termios.h> >--- openrc-0.28/src/rc/start-stop-daemon.c >+++ openrc-0.28-uclibc/src/rc/start-stop-daemon.c >@@ -42,14 +42,39 @@ > #include <fcntl.h> > #include <getopt.h> > #include <limits.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <grp.h> > #include <pwd.h> > #include <signal.h> >+#ifdef __UCLIBC__ >+# ifndef NSIG >+# define NSIG _NSIG >+# endif >+#endif > #include <stddef.h> > #include <stdio.h> >+#ifdef __UCLIBC__ >+# ifdef __USE_BSD >+# undef __USE_BSD >+# endif >+#endif > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > #include <time.h> >+#ifdef __UCLIBC__ >+# ifdef __USE_MISC >+# define __USE_MISC >+# endif >+#endif > #include <unistd.h> > > #ifdef HAVE_PAM >--- openrc-0.28/src/rc/supervise-daemon.c >+++ openrc-0.28-uclibc/src/rc/supervise-daemon.c >@@ -39,15 +39,35 @@ > #include <fcntl.h> > #include <getopt.h> > #include <limits.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <grp.h> > #include <pwd.h> > #include <signal.h> > #include <stddef.h> > #include <stdio.h> >+#ifdef __UCLIBC__ >+# ifdef __USE_BSD >+# undef __USE_BSD >+# endif >+#endif > #include <stdlib.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_BSD >+# define __USE_BSD >+# endif >+#endif > #include <string.h> > #include <syslog.h> > #include <time.h> >+#ifdef __UCLIBC__ >+# ifndef __USE_MISC >+# define __USE_MISC >+# endif >+#endif > #include <unistd.h> > > #ifdef HAVE_PAM >--- openrc-0.28/src/rc/swclock.c >+++ openrc-0.28-uclibc/src/rc/swclock.c >@@ -36,6 +36,10 @@ > > #define RC_SHUTDOWNTIME RC_SVCDIR "/shutdowntime" > >+#ifdef __UCLIBC__ >+extern int settimeofday (const struct timeval *tv, const struct timezone *tz); >+#endif >+ > const char *applet = NULL; > const char *extraopts = "file"; > const char *getoptstring = "sw" getoptstring_COMMON;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 629788
: 492150