DragonFly BSD
DragonFly commits List (threaded) for 2005-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/sys errno.h


From: Simon Schubert <corecode@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 2 Jul 2005 11:13:52 -0700 (PDT)

corecode    2005/07/02 11:13:52 PDT

DragonFly src repository

  Modified files:
    sys/sys              errno.h 
  Log:
  Lots of third party programs declare
  extern int errno;
  
  This breaks when errno is declared as
  extern __thread int errno;
  
  Fix the breakage by using a hack as we had before:
  Define errno as (*__error()), but this time also
  define a static inline __error(void) so that ABI
  doesn't break (and we're saving a call as well).
  
  Revision  Changes    Path
  1.7       +8 -5      src/sys/sys/errno.h


http://www.dragonflybsd.org/cvsweb/src/sys/sys/errno.h.diff?r1=1.6&r2=1.7&f=u



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