Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 346440c1148174e4b6e87477aa56a0d8886dbcc1
      
https://github.com/Perl/perl5/commit/346440c1148174e4b6e87477aa56a0d8886dbcc1
  Author: Tony Cook <[email protected]>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M hints/darwin.sh

  Log Message:
  -----------
  hints/darwin.sh: disable readdir_r on anything vaguely recent

readdir_r() has been deprecated since at least 10.15, current threaded
builds complained:

pp_sys.c:4336:28: warning: 'readdir_r' is deprecated: This function cannot be
      used safely as it does not take into account the variability of
      {NAME_MAX}. It is highly recommended that you use readdir(3) instead.
      [-Wdeprecated-declarations]
 4336 |         dp = (Direntry_t *)PerlDir_read(IoDIRP(io));
      |                            ^
./iperlsys.h:443:41: note: expanded from macro 'PerlDir_read'
  443 | #  define PerlDir_read(dir)             readdir((dir))
      |                                         ^
./reentr.h:1503:29: note: expanded from macro 'readdir'
 1503 | #        define readdir(a) (readdir_r(a, 
PL_reentrant_buffer->_readdir_s...
      |                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/dirent.h:114:1:
 note:
      'readdir_r' has been explicitly marked deprecated here
  114 | __deprecated_msg("This function cannot be used safely as it does not 
tak...
      | ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:227:48:
 note:
      expanded from macro '__deprecated_msg'
  227 |         #define __deprecated_msg(_msg) 
__attribute__((__deprecated__(_msg)))
      |                                                       ^
1 warning generated.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to