Skip to content

Commit e49bc47

Browse files
Stub out get_inheritable
1 parent 141ca1f commit e49bc47

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

python_config/fileutils.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,8 @@ get_inheritable(int fd, int raise)
760760
}
761761

762762
return (flags & HANDLE_FLAG_INHERIT);
763+
#elif defined(SWITCH)
764+
return 1; /* Always true */
763765
#else
764766
int flags;
765767

@@ -798,6 +800,10 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
798800
int res;
799801
#endif
800802

803+
#ifdef SWITCH
804+
return 0; /* Always succeed */
805+
#endif
806+
801807
/* atomic_flag_works can only be used to make the file descriptor
802808
non-inheritable */
803809
assert(!(atomic_flag_works != NULL && inheritable));

0 commit comments

Comments
 (0)