Please sign in to comment.
Compile on MacOSX systems without mach_task_self function
On Snow Leopard mach/mach_init.h has a function decl for mach_task_self, yet later redefines as a macro to return the mach_task_self_ variable. Newer systems have removed the function and since cgo doesn't handle macros, compile fails: "error: 'mach_task_self' undeclared ..." Change-Id: I8d28a9c7609656f2cbdee5588e6a4c337599ac2c
- Loading branch information...