URL: https://github.com/SSSD/sssd/pull/5810
Author: jetomit
 Title: #5810: Include sys/types.h in debug.h
Action: opened

PR body:
"""
Hi, I’m getting compile errors without this (on Debian 10):

    In file included from ./src/util/sss_pam_data.h:33,
                     from src/util/sss_pam_data.c:27:
    ./src/util/debug.h:92:44: error: unknown type name ‘uid_t’; did you mean 
‘uint_t’?
     int chown_debug_file(const char *filename, uid_t uid, gid_t gid);
                                                ^~~~~
                                                uint_t
    ./src/util/debug.h:92:55: error: unknown type name ‘gid_t’
     int chown_debug_file(const char *filename, uid_t uid, gid_t gid);
                                                           ^~~~~

Thanks!
"""

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5810/head:pr5810
git checkout pr5810
From 15a3a4a59236eb71358eabfbc2c24d775dc5bd64 Mon Sep 17 00:00:00 2001
From: Timotej Lazar <timotej.la...@araneo.si>
Date: Tue, 5 Oct 2021 21:35:38 +0200
Subject: [PATCH] Include sys/types.h in debug.h

The chown_debug_file function has uid_t and gid_t arguments, defined
in types.h.
---
 src/util/debug.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/debug.h b/src/util/debug.h
index 9d3499dbdf..01713cb35b 100644
--- a/src/util/debug.h
+++ b/src/util/debug.h
@@ -25,6 +25,7 @@
 
 #include <stdio.h>
 #include <stdbool.h>
+#include <sys/types.h>
 
 #include "util/util_errors.h"
 
_______________________________________________
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to