Compile-time check for clock_nanosleep()
    Chris Ross 
    cross+freebsd at distal.com
       
    Mon Jul  3 18:42:44 UTC 2017
    
    
  
  Some time ago, I ported a linux program that was using clock_nanosleep().  I see now that the extra code I’d put in isn’t needed anymore in 11-stable, as it appears this call was added in 11.1.  My question is, to properly protect these changes, what is the best way to know at compile time, either (a) that that call is in libc, or (b) that I’m compiling on FreeBSD 11.1 or later ?
  Thanks.
                   - Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20170703/7e91ee09/attachment.sig>
    
    
More information about the freebsd-stable
mailing list