include system select headers
include utility functions headers
include string headers
remove default arguments from definitions
check shmctl return statement

this may fix some crash
Merge remote-tracking branch 'megrimm/osx_fixes'
header-checks cleanup

search for sys/select.h
drop termios.h
only include sys/select.h if available
Merge remote-tracking branch 'antoine/fix_pix_share_write'
let the caller of getShm() print the error
shmctl(IPC_STAT) returns 0 on success!
indentation
fixing printout ID

it's "pix_share_write" in the *write patch...
fix crash when device is busy

according to libunicap documentation, format.sizes could be NULL.

Signed-off-by: antoine@nusmuk-12.04 <antoine.villeret@gmail.com>
Merge remote-tracking branch 'antoine/fix-videounicap'
use verbose() rather than error()

this makes it less verbose in automatic mode (when we don't want to
see the error messages of all plugins until one of them matches...)
shmat return (void *)-1 on failure
always check return value of `shmat`
report issue to right outlet

Signed-off-by: antoine@nusmuk-12.04 <antoine.villeret@gmail.com>
set shm_addr to NULL on failure.