openbsd-ports/net/ptpd/patches/patch-src_dep_ptpd_dep_h
naddy 093998e9e2 Import ptpd 1.0.0
The PTP daemon (PTPd) implements the Precision Time protocol (PTP) as
defined by the IEEE 1588 standard. PTP was developed to provide very
precise time coordination of LAN connected computers.

with ckuethe@
2009-01-20 19:05:23 +00:00

23 lines
786 B
Plaintext

$OpenBSD: patch-src_dep_ptpd_dep_h,v 1.1.1.1 2009/01/20 19:05:23 naddy Exp $
--- src/dep/ptpd_dep.h.orig Mon Apr 2 23:57:44 2007
+++ src/dep/ptpd_dep.h Sun Oct 26 13:13:21 2008
@@ -13,7 +13,9 @@
#include<sys/stat.h>
#include<time.h>
#include<sys/time.h>
+#if !defined(__OpenBSD__)
#include<sys/timex.h>
+#endif
#include<sys/socket.h>
#include<sys/select.h>
#include<sys/ioctl.h>
@@ -22,7 +24,7 @@
/* system messages */
#define ERROR(x, ...) fprintf(stderr, "(ptpd error) " x, ##__VA_ARGS__)
-#define PERROR(x, ...) fprintf(stderr, "(ptpd error) " x ": %m\n", ##__VA_ARGS__)
+#define PERROR(x, ...) fprintf(stderr, "(ptpd error) " x ": %s\n", ##__VA_ARGS__, strerror(errno))
#define NOTIFY(x, ...) fprintf(stderr, "(ptpd notice) " x, ##__VA_ARGS__)
/* debug messages */