Skip to content

Commit

Permalink
Cherry pick PR #3344: Fix USE_POSIX_PIPE condition on all platforms (#…
Browse files Browse the repository at this point in the history
…3352)

Refer to the original PR: #3344

Fix the wrong condition introduced in #2787, and ensure Posixy platforms
do use Pipe implementation of socket waiter.

Test-On-Device: true

b/150410605

Co-authored-by: Kaido Kert <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and kaidokert committed May 24, 2024
1 parent 533a741 commit 9ad9a4a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions starboard/shared/libevent/socket_waiter_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@

namespace sbposix = starboard::shared::posix;

#if (defined(_GNU_SOURCE) || defined(_POSIX_VERSION)) && \
!(PLAYSTATION_GENERATION <= 5)
#if defined(_GNU_SOURCE) || defined(_POSIX_VERSION)
#if defined(PLAYSTATION_GENERATION) && (PLAYSTATION_GENERATION <= 5)
#define USE_POSIX_PIPE 0
#else
#define USE_POSIX_PIPE 1
#endif
#else
#define USE_POSIX_PIPE 0
#endif
Expand Down

0 comments on commit 9ad9a4a

Please sign in to comment.