"There was no cmake fallout in the bulk on amd64" jasper@ Also tested by Brad with a handful of CMake using ports
22 lines
627 B
Plaintext
22 lines
627 B
Plaintext
$OpenBSD: patch-Source_kwsys_SystemTools_cxx,v 1.11 2012/08/31 12:28:31 dcoppa Exp $
|
|
|
|
Don't spam systrace by attempting to create dirs which already exist.
|
|
|
|
--- Source/kwsys/SystemTools.cxx.orig Thu Aug 9 20:15:19 2012
|
|
+++ Source/kwsys/SystemTools.cxx Thu Aug 23 11:25:48 2012
|
|
@@ -233,11 +233,13 @@ inline void Realpath(const char *path, kwsys_stl::stri
|
|
}
|
|
#else
|
|
#include <sys/types.h>
|
|
+#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
inline int Mkdir(const char* dir)
|
|
{
|
|
- return mkdir(dir, 00777);
|
|
+ struct stat sb;
|
|
+ return stat(dir, &sb) && mkdir(dir, 00777);
|
|
}
|
|
inline int Rmdir(const char* dir)
|
|
{
|