/* * Copyright (C) 2022 Gunar Schorcht * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ #define PTHREAD_CANCEL_DISABLE 1 /* * This is a dummy function to avoid undefined references when linking * against newlib and module pthread is not used. */ int pthread_setcancelstate(int state, int *oldstate) { if (oldstate) { *oldstate = PTHREAD_CANCEL_DISABLE; } return 0; }