***************
*** 97,103 ****
  
  
  /* Fix problem with S_ISLNK() on Linux */
! #if defined(HAVE_LINUXTHREADS)
  #undef  _GNU_SOURCE
  #define _GNU_SOURCE 1
  #endif
--- 97,103 ----
  
  
  /* Fix problem with S_ISLNK() on Linux */
! #if defined(TARGET_OS_LINUX) || defined(__GLIBC__)
  #undef  _GNU_SOURCE
  #define _GNU_SOURCE 1
  #endif