vim /usr/include/python3.4m/pyconfig.h

Change #define __BSD_VISIBLE 1 to #define __BSD_VISIBLE 0

/* Define on FreeBSD to activate all library features */
#define __BSD_VISIBLE 0