As we discussed in the last meeting, we reset the ports tree and began from scratch, even though this change involves porting all the packages. Starting small and growing gradually, this approach will reduce build times and consequently lower energy consumption in a world affected by climate change. We will add new ports as users needs arise; ok h3artbl33d@
This commit is contained in:
parent
83a0aaf92c
commit
9a3af55370
59377 changed files with 98673 additions and 4712155 deletions
24
devel/fmt/patches/patch-src_os_cc
Normal file
24
devel/fmt/patches/patch-src_os_cc
Normal file
|
@ -0,0 +1,24 @@
|
|||
Fix handling of the fileno macro
|
||||
38881e5acfbac830bdf68ad1c101ae420ac5bc92
|
||||
|
||||
Index: src/os.cc
|
||||
--- src/os.cc.orig
|
||||
+++ src/os.cc
|
||||
@@ -182,12 +182,12 @@ void buffered_file::close() {
|
||||
}
|
||||
|
||||
int buffered_file::descriptor() const {
|
||||
-#if !defined(fileno)
|
||||
+#ifdef FMT_HAS_SYSTEM
|
||||
+ // fileno is a macro on OpenBSD.
|
||||
+# ifdef fileno
|
||||
+# undef fileno
|
||||
+# endif
|
||||
int fd = FMT_POSIX_CALL(fileno(file_));
|
||||
-#elif defined(FMT_HAS_SYSTEM)
|
||||
- // fileno is a macro on OpenBSD so we cannot use FMT_POSIX_CALL.
|
||||
-# define FMT_DISABLE_MACRO
|
||||
- int fd = FMT_SYSTEM(fileno FMT_DISABLE_MACRO(file_));
|
||||
#else
|
||||
int fd = fileno(file_);
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue