23 lines
786 B
Plaintext
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 */
|