diff options
Diffstat (limited to 'sys-apps/util-linux/files/util-linux-2.13-uclibc.patch')
-rw-r--r-- | sys-apps/util-linux/files/util-linux-2.13-uclibc.patch | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/sys-apps/util-linux/files/util-linux-2.13-uclibc.patch b/sys-apps/util-linux/files/util-linux-2.13-uclibc.patch deleted file mode 100644 index 237e126..0000000 --- a/sys-apps/util-linux/files/util-linux-2.13-uclibc.patch +++ /dev/null @@ -1,71 +0,0 @@ ---- login-utils/agetty.c -+++ login-utils/agetty.c -@@ -884,7 +884,7 @@ - - case 'o': - { -- char domainname[HOST_NAME_MAX+1]; -+ char domainname[HOSTNAME_LENGTH+1]; - #ifdef HAVE_GETDOMAINNAME - if (getdomainname(domainname, sizeof(domainname))) - #endif -@@ -897,7 +897,7 @@ - case 'O': - { - char *dom = "unknown_domain"; -- char host[HOST_NAME_MAX + 1]; -+ char host[HOSTNAME_LENGTH + 1]; - struct addrinfo hints, *info = NULL; - - memset(&hints, 0, sizeof(hints)); -@@ -992,7 +992,7 @@ - } - #endif - { -- char hn[HOST_NAME_MAX+1]; -+ char hn[HOSTNAME_LENGTH+1]; - if (gethostname(hn, sizeof(hn)) == 0) - write(1, hn, strlen(hn)); - } ---- configure -+++ configure -@@ -7663,7 +7663,10 @@ - main () - { - --int test = SYS_sched_getaffinity; -+#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 -+#error taskset unusable -+#endif -+int test = SYS_sched_getaffinity; - - ; - return 0; ---- sys-utils/setarch.c -+++ sys-utils/setarch.c -@@ -39,6 +39,10 @@ - #include <sys/utsname.h> - #include "nls.h" - -+#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 -+static const char *program_invocation_short_name; -+#endif -+ - #define set_pers(pers) ((long)syscall(SYS_personality, pers)) - - struct { -@@ -184,6 +188,14 @@ - bindtextdomain(PACKAGE, LOCALEDIR); - textdomain(PACKAGE); - -+#if defined(__UCLIBC__) && __UCLIBC_SUBLEVEL__ <= 28 -+ program_invocation_short_name = strrchr(argv[0],'/'); -+ if (program_invocation_short_name) -+ program_invocation_short_name++; -+ else -+ program_invocation_short_name = argv[0]; -+#endif -+ - if (argc < 1) - show_usage(_("Not enough arguments")); - |