Opened 11 years ago
Closed 11 years ago
#3129 closed defect (fixed)
Compile error r8282 with ddwrt410 toolchain
Reported by: | basta | Owned by: | |
---|---|---|---|
Priority: | blocker | Component: | General |
Severity: | high | Keywords: | |
Cc: | Sensitive: | no |
Description
Revision
<Please fill in>
8282
Issue Description
<Please fill in>
oscam.c: In function 'set_thread_name':
oscam.c:779: error: 'PR_SET_NAME' undeclared (first use in this function)
oscam.c:779: error: (Each undeclared identifier is reported only once
oscam.c:779: error: for each function it appears in.)
make[1]: * [build/mipsel-linux-uclibc/oscam.o] Fehler 1
make: * [all] Fehler 2
When the issue occurs
<Please fill in>
Everytime i crosscpmpiule for ddwrt mipsel system
How the issue is reproducable
<Please fill in>
<Don't forget to ATTACH (NOT post here as text) a log file of oscam in debug mode (start oscam with -d255) and to remove the brackets around the fields! Otherwise, your ticket will be closed as you seem to be unable to read.>
Compiling for native linux 64bit works and for sh4 too.
Change History (3)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
diff --git a/oscam.c b/oscam.c index 7ce72b2..50a2388 100644 --- a/oscam.c +++ b/oscam.c @@ -774,6 +774,11 @@ static void init_check(void){ #ifdef __linux__ #include <sys/prctl.h> +// PR_SET_NAME is introduced in 2.6.9 (which is ancient, released 18 Oct 2004) +// but apparantly we can't count on having at least that version :( +#ifndef PR_SET_NAME +#define PR_SET_NAME 15 +#endif // Set the thread name (comm) under linux (the limit is 16 chars) void set_thread_name(const char *thread_name) {
What kernel headers does this toolchain have? PR_SET_NAME is introduced in Linux 2.6.9.