File: pthread-once-hurd.patch

package info (click to toggle)
libnss-mysql 1.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 476 kB
  • sloc: ansic: 1,667; sql: 295; makefile: 45; sh: 30
file content (17 lines) | stat: -rw-r--r-- 499 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: Simon Josefsson <simon@josefsson.org>
Subject: PTHREAD_ONCE_INIT Hurd fix
Last-Update: 2025-08-16

diff --git a/src/nss_main.c b/src/nss_main.c
index d8ea596..8cbb186 100644
--- a/src/nss_main.c
+++ b/src/nss_main.c
@@ -35,7 +35,7 @@
 #endif
 
 pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
-pthread_once_t _nss_mysql_once_control = {PTHREAD_ONCE_INIT};
+pthread_once_t _nss_mysql_once_control = PTHREAD_ONCE_INIT;
 static int _nss_mysql_locked_by_atfork = 0;
 
 #define MAX_MSG_SIZE 1024