From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 14C0E3858D1E for ; Wed, 9 Nov 2022 17:14:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 14C0E3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id B9F29340DAF; Wed, 9 Nov 2022 17:14:35 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: ppc: drop obsolete USE_WIN32API check Date: Thu, 10 Nov 2022 00:14:32 +0700 Message-Id: <20221109171432.12975-1-vapier@gentoo.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This controls only one thing: how to call mkdir(). The gnulib code already has a mkdir module that provides this exact logic for us, so punt the code entirely. --- sim/ppc/config.in | 5 ----- sim/ppc/configure | 8 -------- sim/ppc/configure.ac | 10 ---------- sim/ppc/emul_unix.c | 4 ---- 4 files changed, 27 deletions(-) diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac index 542e8a105fbb..cd9edd0de4cd 100644 --- a/sim/ppc/configure.ac +++ b/sim/ppc/configure.ac @@ -381,16 +381,6 @@ if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then fi],[sim_xor_endian=""])dnl -case ${host} in - *mingw32*) - AC_DEFINE(USE_WIN32API, 1, - [Define if we should use the Windows API, instead of the - POSIX API. On Windows, we use the Windows API when - building for MinGW, but the POSIX API when building - for Cygwin.]) - ;; -esac - AC_CONFIG_HEADER(config.h:config.in) diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c index 57691d4befcd..1d8b7814ffc6 100644 --- a/sim/ppc/emul_unix.c +++ b/sim/ppc/emul_unix.c @@ -760,11 +760,7 @@ do_unix_mkdir(os_emul_data *emul, if (WITH_TRACE && ppc_trace[trace_os_emul]) printf_filtered ("0x%lx [%s], 0%3o", (long)path_addr, path, mode); -#ifdef USE_WIN32API - status = mkdir(path); -#else status = mkdir(path, mode); -#endif emul_write_status(processor, status, errno); } #endif -- 2.38.1