~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/my_sys.h

  • Committer: Stewart Smith
  • Date: 2008-06-30 05:43:45 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: stewart@flamingspork.com-20080630054345-drcljfrjinqmut2h
my_errno => errno

saves sizeof(int) per thread + sizeof(int) in RAM usage!

even seems to kinda work!

breaks build with dbug library for some strange reason.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
} my_aio_result;
26
26
#endif
27
27
 
28
 
#ifndef THREAD
29
 
extern int my_errno;            /* Last error in mysys */
30
 
#else
 
28
#include <errno.h>
 
29
#define my_errno (errno)
 
30
 
 
31
#ifdef THREAD
31
32
#include <my_pthread.h>
32
33
#endif
33
34