aom: Define pthread_attr_getstacksize/setstacksize (46145)

From 46145a2d817526bb08d4b48e3ed4311eecb97b64 Mon Sep 17 00:00:00 2001
From: Wan-Teh Chang <[EMAIL REDACTED]>
Date: Tue, 30 Apr 2024 16:11:18 -0700
Subject: [PATCH] Define pthread_attr_getstacksize/setstacksize

Bug: aomedia:2754, aomedia:3567
Change-Id: I0608ffe8f0e6fc2f99f8834408084308e51aaf3e
(cherry picked from commit 19d0cc368112563e0020920ac2ee4f8cd8fd598e)
---
 aom_util/aom_pthread.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/aom_util/aom_pthread.h b/aom_util/aom_pthread.h
index 1a97a0a9d..425a6b00f 100644
--- a/aom_util/aom_pthread.h
+++ b/aom_util/aom_pthread.h
@@ -72,6 +72,20 @@ static INLINE int pthread_attr_destroy(pthread_attr_t *attr) {
   return 0;
 }
 
+static INLINE int pthread_attr_getstacksize(const pthread_attr_t *attr,
+                                            size_t *stacksize) {
+  (void)attr;
+  (void)stacksize;
+  return EINVAL;
+}
+
+static INLINE int pthread_attr_setstacksize(pthread_attr_t *attr,
+                                            size_t stacksize) {
+  (void)attr;
+  (void)stacksize;
+  return EINVAL;
+}
+
 static INLINE int pthread_create(pthread_t *const thread,
                                  const pthread_attr_t *attr,
                                  unsigned int(__stdcall *start)(void *),