diff options
author | Gerrit Pape <pape@smarden.org> | 2004-01-19 12:20:03 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2004-01-19 12:20:03 +0000 |
commit | 3863c7cf81744a96444c68e10b26dfc937389cbb (patch) | |
tree | 546b839595dfb4d825dfcde43d1fd6a58e1bbae1 /src/trysocketlib.c | |
parent | f6120c699dc78cda5ca61d50de997b5c17f4b731 (diff) | |
download | runit-3863c7cf81744a96444c68e10b26dfc937389cbb.tar.gz runit-3863c7cf81744a96444c68e10b26dfc937389cbb.tar.xz runit-3863c7cf81744a96444c68e10b26dfc937389cbb.zip |
* svlogd.c: bugfix: properly print new-line character to the log on end
of line (thx Pawel Chmielowski). * trysocketlib.c: new; check for libraries needed for socket() on some systems (fixes link failure on solaris, thx Uffe Jakobsen). * Makefile: adapt.
Diffstat (limited to 'src/trysocketlib.c')
-rw-r--r-- | src/trysocketlib.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/trysocketlib.c b/src/trysocketlib.c new file mode 100644 index 0000000..0fe5d06 --- /dev/null +++ b/src/trysocketlib.c @@ -0,0 +1,12 @@ +#include <sys/types.h> +#include <sys/param.h> +#include <sys/socket.h> +#include <netinet/in.h> +#include <unistd.h> + +int main(void) { + int s; + + s =socket(AF_INET, SOCK_STREAM, 0); + return(close(s)); +} |