bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] compiling gettext under cygwin


From: Daiki Ueno
Subject: Re: [bug-gettext] compiling gettext under cygwin
Date: Sat, 15 Dec 2012 18:37:45 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

pavel <address@hidden> writes:

>> > I tried to compile gettext with i686-w64-mingw32 (both build and host)
>> > under cygwin (Windows XP SP2) and got one compile error in
>> > gettext-runtime/tests/test-lock.c file. I had to change the return value
>> > of gl_thread_self function from void* to pthread_t. After that, the
>> > whole compile and install process went smoothly.
>>
>> It seems that gettext-runtime/tests/test-lock.c is not in sync with the
>> latest gnulib.  Could you try:
>
> this gives me another error, see the attached screenshot.

Sorry for my pointless advice.  You are right and test-lock.c should be
adjusted, something like:

 static inline void * gl_thread_self (void)
 {
+#ifdef PTW32_VERSION
+  return pthread_self ().p;
+#else
   return (void *) pthread_self ();
+#endif
 }

I'll investigate a bit more on w32 and post the final version later.

Regards,
-- 
Daiki Ueno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]