Message284426
| Author |
Pam.McANulty |
| Recipients |
Pam.McANulty, benjamin.peterson, christian.heimes, larry, mark.dickinson, ned.deily, rhettinger, ronaldoussoren, vstinner, yan12125 |
| Date |
2017年01月01日.19:18:19 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1483298299.91.0.238685858709.issue29057@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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);
``` |
|