0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-13 14:09:19 +00:00
termux-packages/x11-packages/octave-x/0003-undefine-the-macro-in-pwd.h.patch
2024-10-23 11:17:19 +03:00

18 lines
292 B
Diff

+++ ./liboctave/wrappers/pwd-wrappers.c
@@ -32,6 +32,15 @@
#if defined (HAVE_PWD_H)
# include <pwd.h>
+# ifdef getpwnam
+# undef getpwnam
+# endif
+# ifdef getpwuid
+# undef getpwuid
+# endif
+# ifdef getpwuid_r
+# undef getpwuid_r
+# endif
#endif
#include "pwd-wrappers.h"