lfp_mkostemp: avoid leaking the random source file descriptor
Fix backwards check in lfp_mkostemp

This went unnoticed because until a3f1a9b2d64dcb lfp_mkstemp was using
mkostemp instead of lfp_mkostemp
Fix OpenBSD CFLAGS
Don't define _XOPEN_SOURCE on OpenBSD
Make pselect() optional, fallback on select()
Add missing include for OpenBSD
Incompatible change: make lfp_ptsname() wrap ptsname_r()
Fix typo
Fix declaration for lfp_ptsname()
Add include for OpenBSD
Move lfp_getpeereid() to socket.h
Whitespace
Add include for OpenBSD
Add include for OpenBSD
Include sys/signalvar.h directly
Merge mkstemp fixes into master

Conflicts:
	src/lib/stdlib.c