Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
* lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
where pthread_t is unsigned int.
+2020-10-05 Paul Eggert <eggert@cs.ucla.edu>
+
+ thread: pacify GCC on Solaris 10
+ Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
+ * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
+ instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
+ where pthread_t is unsigned int.
+
2020-10-04 Paul Eggert <eggert@cs.ucla.edu>
c-stack: avoid AS_IF
extern const gl_thread_t gl_null_thread;
# else
# define gl_thread_self() \
- (pthread_in_use () ? pthread_self () : (pthread_t) NULL)
+ (pthread_in_use () ? pthread_self () : (pthread_t) 0)
# define gl_thread_self_pointer() \
(pthread_in_use () ? (void *) pthread_self () : NULL)
# endif