open-vm-tools/strerror_r.patch

15 lines
450 B
Diff
Raw Normal View History

--- open-vm-tools-9.10.0-2476743.orig/vgauth/common/VGAuthLog.c 2015-03-19 15:53:25.000000000 -0700
+++ open-vm-tools-9.10.0-2476743/vgauth/common/VGAuthLog.c 2015-04-21 01:24:32.370582529 -0700
@@ -25,6 +25,11 @@
#ifdef _WIN32
#include <windows.h>
#else
+/*
+ * Need GNU definition of strerror_r for better compatibility
+ * across different glibc versions.
+ */
+#define _GNU_SOURCE
#include <errno.h>
#include <unistd.h>
#include <string.h>