Message284426
I've dug into things some more.
In my mac environment, sys/random.h is pretty empty and doesn't actually seem to provide anything that Python/random.c uses. The compile error is a type error is because 'u_int' never gets typedef'd in the rest of the compile includes.
I think the bottom line is that sys/random.h on mac os is neither useful, nor required.
Below is the error again and I've attached my sys/random.h
```
In file included from Python/random.c:16:
/usr/include/sys/random.h:37:32: error: unknown type name 'u_int'
void read_random(void* buffer, u_int numBytes);
^
/usr/include/sys/random.h:38:33: error: unknown type name 'u_int'
void read_frandom(void* buffer, u_int numBytes);
^
/usr/include/sys/random.h:39:33: error: unknown type name 'u_int'
int write_random(void* buffer, u_int numBytes);
``` |
|
Date |
User |
Action |
Args |
2017-01-01 19:18:20 | Pam.McANulty | set | recipients:
+ Pam.McANulty, rhettinger, ronaldoussoren, mark.dickinson, vstinner, larry, christian.heimes, benjamin.peterson, ned.deily, yan12125 |
2017-01-01 19:18:19 | Pam.McANulty | set | messageid: <1483298299.91.0.238685858709.issue29057@psf.upfronthosting.co.za> |
2017-01-01 19:18:19 | Pam.McANulty | link | issue29057 messages |
2017-01-01 19:18:19 | Pam.McANulty | create | |
|