ports/emulators/fbsd-duckstation/files/patch-src-common-byte_stream.cpp
Ganael LAPLANCHE c2d6cbb076 emulators/duckstation: Rename to fbsd-duckstation
Follow developer's will (expressed in private) to emphasize our port
includes local patches and does not reflect the exact version of the
original software.
2024-12-04 08:44:00 +01:00

11 lines
522 B
C++

--- src/common/byte_stream.cpp.orig 2024-06-14 05:59:32 UTC
+++ src/common/byte_stream.cpp
@@ -1118,7 +1118,7 @@ std::unique_ptr<ByteStream> ByteStream::OpenFile(const
std::snprintf(temporaryFileName, fileNameLength + 8, "%s.XXXXXX", fileName);
// fill in random characters
-#if defined(__linux__) || defined(__ANDROID__) || defined(__APPLE__)
+#if defined(__linux__) || defined(__ANDROID__) || defined(__APPLE__) || defined(__FreeBSD__)
mkstemp(temporaryFileName);
#else
mktemp(temporaryFileName);