Files
ports/misc/py-paddlepaddle/files/patch-paddle_fluid_framework_channel.h
2026-10-04 04:07:15 +00:00

16 lines
587 B
C

-- FreeBSD is not Linux, but PaddlePaddle source defines _LINUX for any
-- platform that is not Windows or macOS (using '#if defined _WIN32 || defined
-- __APPLE__'). This causes Linux-only code (stdio_ext.h includes, glibc-specific
-- syscalls) to be compiled on FreeBSD. Add __FreeBSD__ to the exclusion list.
--- paddle/fluid/framework/channel.h.orig 2026-06-19 18:10:22 UTC
+++ paddle/fluid/framework/channel.h
@@ -14,7 +14,7 @@
#pragma once
-#if defined _WIN32 || defined __APPLE__
+#if defined _WIN32 || defined __APPLE__ || defined __FreeBSD__
#else
#define _LINUX
#endif