balabit/syslog-ng — pull request #13 by algernon (2013-11-15 15:35:57+00:00)
Title: system-source: Fix the uname() call on Solaris

On Solaris, uname() can return any positive value, and that indicates
success. Pretty much everywhere else, only 0 does. Thankfully, -1
signals failure everywhere, so check for that.

This makes system() work on Solaris again.

Signed-off-by: Gergely Nagy