From 07e6c690978a9c70879c0165815653bd75407ba5 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Mon, 10 Jul 2017 21:31:59 +0200 Subject: [PATCH] Fix empty struct thread_rwlockattr_t. --- libc/include/__/pthread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libc/include/__/pthread.h b/libc/include/__/pthread.h index bde20d93..7b85f5e3 100644 --- a/libc/include/__/pthread.h +++ b/libc/include/__/pthread.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2014 Jonas 'Sortie' Termansen. + * Copyright (c) 2013, 2014, 2017 Jonas 'Sortie' Termansen. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -147,10 +147,12 @@ typedef struct #if defined(__is_sortix_libc) typedef struct { + char __structure_is_non_empty; } __pthread_rwlockattr_t; #else typedef struct { + char __structure_is_non_empty; } __pthread_rwlockattr_t; #endif