*/
#include "acconfig.h"
+#include "include/compat.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
if (status < 0) {
char error_buf[80];
-#ifdef STRERROR_R_CHAR_P
- char* dummy = strerror_r(errno, error_buf, sizeof(error_buf));
- (void)dummy;
-#else
- strerror_r(errno, error_buf, sizeof(error_buf));
-#endif
+ char* errp = ceph_strerror_r(errno, error_buf, sizeof(error_buf));
fprintf(stderr, "couldn't run '%s': %s\n", command,
- error_buf);
+ errp);
} else if (WIFSIGNALED(status)) {
fprintf(stderr, "'%s' killed by signal %d\n", command,
WTERMSIG(status));