Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: plugin compile problem



On Fri, 30 May 2003, Andreas Schultz wrote:
> investigated the possibilities and the only reliable fix is to add
> - -D_GNU_SOURCE to all Makefiles. Adding a #define _GNU_SOURCE to thread.h
> doesn't help since pthread_types.h gets included before it through other
> system headers.

Andreas,

pthread_types.h gets included by pthreads.h and that gets included in
thread.h (and only from there!). So that's not the reason for your tests
to have failed.

The reason is that you have to define "GNU_SOURCE" in the Makefiles _but_
if you want to define it directly in the header-files you have to use
"USE_GNU" instead. Below is a patch for thread.h which did it for me here.

Maybe you can include this in your autopid-patch.

Regards,
Andreas

------------------------- snip -------------------------------------
--- thread.h.orig       Sat May 31 18:43:09 2003
+++ thread.h    Sat May 31 18:43:45 2003
@@ -10,6 +10,8 @@
 #ifndef __THREAD_H
 #define __THREAD_H

+#define USE_GNU
+
 #include <pthread.h>
 #include <stdio.h>
 #include <sys/types.h>




-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index