This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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);
```
History
Date User Action Args
2017-01-01 19:18:20Pam.McANultysetrecipients: + Pam.McANulty, rhettinger, ronaldoussoren, mark.dickinson, vstinner, larry, christian.heimes, benjamin.peterson, ned.deily, yan12125
2017-01-01 19:18:19Pam.McANultysetmessageid: <1483298299.91.0.238685858709.issue29057@psf.upfronthosting.co.za>
2017-01-01 19:18:19Pam.McANultylinkissue29057 messages
2017-01-01 19:18:19Pam.McANultycreate