Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 157451 Details for
Bug 227923
dev-util/pretrace-0.4 fails to build with glibc 2.8 (ARG_MAX undefined)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for ARG_MAX using sysconf
gcc-4.3.patch.1 (text/plain), 930 bytes, created by
Bandan
on 2008-06-18 15:44:18 UTC
(
hide
)
Description:
Fix for ARG_MAX using sysconf
Filename:
MIME Type:
Creator:
Bandan
Created:
2008-06-18 15:44:18 UTC
Size:
930 bytes
patch
obsolete
>diff -Nru libpretrace-0.4.orig/libpretrace.c libpretrace-0.4/libpretrace.c >--- libpretrace-0.4.orig/libpretrace.c 2008-06-18 11:31:33.000000000 -0400 >+++ libpretrace-0.4/libpretrace.c 2008-06-18 11:36:32.000000000 -0400 >@@ -18,6 +18,14 @@ > #include <sys/stat.h> > #include <unistd.h> > >+#if defined(_SC_ARG_MAX) >+# if defined(ARG_MAX) >+# undef ARG_MX >+# endif >+#define ARG_MAX sysconf(_SC_ARG_MAX) >+#endif >+ >+ > /* #define DEBUG */ > > #include "trie.h" >diff -Nru libpretrace-0.4.orig/ptgenmap.c libpretrace-0.4/ptgenmap.c >--- libpretrace-0.4.orig/ptgenmap.c 2008-06-18 11:31:33.000000000 -0400 >+++ libpretrace-0.4/ptgenmap.c 2008-06-18 11:37:02.000000000 -0400 >@@ -2,6 +2,14 @@ > #include <limits.h> > #include <string.h> > #include <stdlib.h> >+#include <unistd.h> >+ >+#if defined(_SC_ARG_MAX) >+# if defined(ARG_MAX) >+# undef ARG_MX >+# endif >+#define ARG_MAX sysconf(_SC_ARG_MAX) >+#endif > > #include "pretrace.h" > #include "trie.h"
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 227923
:
157387
| 157451