$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 #include #include +#if !defined(__OpenBSD__) #include +#endif #include #include #include @@ -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 */