Use stream/dgram autodection on /dev/log for syslog-ng compat
Use stream/dgram autodection on /dev/log for syslog-ng compat

Patch from
https://raw.github.com/gentoo-haskell/gentoo-haskell/master/dev-haskell/hslogger/files/hslogger-1.2.1-dev-log-rdetect.patch

Patch comments:

"Detect "/dev/log" socket type (Stream / Dgram) at runtime
as it does openlog from glibc.

Patch based on report by George Diamantopoulos:

https://groups.google.com/forum/#!topic/ganeti/xnj-WctN7HY/discussion

Original bug report

https://github.com/jgoerzen/hslogger/issues/1

Reported-by: George Diamantopoulos
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>"

Fixes #1

jgoerzen/hslogger