From: octo Date: Fri, 28 Apr 2006 21:35:32 +0000 (+0000) Subject: `oping' now compiles and I'll go to bed. G'night. X-Git-Tag: liboping-0.1.0~29 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dd034fad465d2e5c9fe955194141d04edf43079b;p=collectd.git `oping' now compiles and I'll go to bed. G'night. --- diff --git a/src/Makefile.am b/src/Makefile.am index 1d537919..d1283ecc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,3 +12,8 @@ if BUILD_WITH_LIBSOCKET liboping_la_LDFLAGS += -lsocket endif liboping_la_SOURCES = liboping.h liboping.c + +bin_PROGRAMS = oping + +oping_SOURCES = oping.c +oping_LDADD = liboping.la diff --git a/src/oping.c b/src/oping.c index cd7a781e..65d74c7c 100644 --- a/src/oping.c +++ b/src/oping.c @@ -1,7 +1,37 @@ -#include -#include +/** + * Object oriented C module to send ICMP and ICMPv6 `echo's. + * Copyright (C) 2006 Florian octo Forster + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ -#include "liboping.h" +#if HAVE_CONFIG_H +# include +#endif + +#if STDC_HEADERS +# include +# include +# include +# include +# include +#else +# error "You don't have the standard C99 header files installed" +#endif /* STDC_HEADERS */ + +#include int main (int argc, char **argv) {