Files
proxmark3/tools
İlteriş Yağıztegin Eroğlu 87400b6156 don't define _POSIX_C_SOURCE in mfd_aes_brute.c if macos
unistd.h in macos has this snippet:

 #if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
 #define _SC_NPROCESSORS_CONF            57
 #define _SC_NPROCESSORS_ONLN            58
 #endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */

__DARWIN_C_FULL is 900000L.

If _POSIX_C_SOURCE gets defined without __DARWIN_C_SOURCE being defined,
__DARWIN_C_LEVEL will be assigned to __DARWIN_C_ANSI, which is 010000L.

Thus this definition will remove _SC_NPROCESSORS_CONF.

If we don't define _POSIX_C_SOURCE, __DARWIN_C_LEVEL will be equal to
__DARWIN_C_FULL, and _SC_NPROCESSORS_CONF will be available.

This commit also includes homebrew and macports prefix definitions for mfd_aes_brute.

Signed-off-by: İlteriş Yağıztegin Eroğlu <ilteris@asenkron.com.tr>
2022-01-31 15:41:06 +03:00
..
2022-01-06 21:53:39 +01:00
2022-01-08 15:05:03 +01:00
2022-01-09 00:33:33 +01:00
2021-10-10 01:35:45 +02:00
2021-10-16 23:44:53 +02:00
2021-10-06 20:06:17 +02:00
2021-10-16 23:44:53 +02:00
2021-10-16 23:44:53 +02:00
2021-10-06 20:27:55 +02:00
2021-10-06 20:27:55 +02:00
2020-02-18 00:00:24 +00:00
2020-02-18 00:00:24 +00:00
2021-10-10 01:35:45 +02:00
2021-10-10 01:35:45 +02:00
2021-10-06 20:27:55 +02:00
2021-10-06 20:27:55 +02:00
2022-01-26 20:42:11 +01:00
2021-10-06 20:27:55 +02:00