Created
May 20, 2015 10:33
-
-
Save dmilith/12aa35bf1a8cc69f6a7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SYS_gettid | |
// i386: 224, ia64: 1105, amd64: 186, sparc 143 | |
#ifdef __ia64__ | |
#define SYS_gettid 1105 | |
#elif __i386__ | |
#define SYS_gettid 224 | |
#elif __amd64__ | |
#define SYS_gettid 186 | |
#elif __sparc__ | |
#define SYS_gettid 143 | |
#else | |
#error define gettid for the arch | |
#endif | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment