[committed] hppa: Fix gcc.dg/analyzer/fd-4.c on hpux

Message ID ZV-8ZH8myH1bUMhj@mx3210.localdomain
State Accepted
Headers
Series [committed] hppa: Fix gcc.dg/analyzer/fd-4.c on hpux |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

John David Anglin Nov. 23, 2023, 8:56 p.m. UTC
  This fixes gcc.dg/analyzer/fd-4.c on hppa64-hp-hpux11.11.  Committed
to trunk.

Dave
---

hppa: Fix gcc.dg/analyzer/fd-4.c on hpux

2023-11-23  John David Anglin  <danglin@gcc.gnu.org>

gcc/testsuite/ChangeLog:

	* gcc.dg/analyzer/fd-4.c: Define _MODE_T on hpux.
  

Patch

diff --git a/gcc/testsuite/gcc.dg/analyzer/fd-4.c b/gcc/testsuite/gcc.dg/analyzer/fd-4.c
index 994bad84342..3a961e4f813 100644
--- a/gcc/testsuite/gcc.dg/analyzer/fd-4.c
+++ b/gcc/testsuite/gcc.dg/analyzer/fd-4.c
@@ -1,4 +1,4 @@ 
-#ifdef _AIX
+#if defined(_AIX) || defined(__hpux)
 #define _MODE_T
 #endif
 #include <stdio.h>