Преглед изворни кода

LibCore: Use BSD implementation of anon_create() on Haiku

nipos пре 1 година
родитељ
комит
0dfd6994e3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Userland/Libraries/LibCore/System.cpp

+ 1 - 1
Userland/Libraries/LibCore/System.cpp

@@ -513,7 +513,7 @@ ErrorOr<int> anon_create([[maybe_unused]] size_t size, [[maybe_unused]] int opti
         TRY(close(fd));
         TRY(close(fd));
         return Error::from_errno(saved_errno);
         return Error::from_errno(saved_errno);
     }
     }
-#elif defined(AK_OS_BSD_GENERIC) || defined(AK_OS_EMSCRIPTEN)
+#elif defined(AK_OS_BSD_GENERIC) || defined(AK_OS_EMSCRIPTEN) || defined(AK_OS_HAIKU)
     struct timespec time;
     struct timespec time;
     clock_gettime(CLOCK_REALTIME, &time);
     clock_gettime(CLOCK_REALTIME, &time);
     auto name = DeprecatedString::formatted("/shm-{}{}", (unsigned long)time.tv_sec, (unsigned long)time.tv_nsec);
     auto name = DeprecatedString::formatted("/shm-{}{}", (unsigned long)time.tv_sec, (unsigned long)time.tv_nsec);