6c1950e
From c111873f35f29576d655652a95810bfceb1862ef Mon Sep 17 00:00:00 2001
6c1950e
From: Ray Strode <rstrode@redhat.com>
6c1950e
Date: Wed, 24 Jan 2018 11:17:59 -0500
6c1950e
Subject: [PATCH] lib: add crypt.h include
6c1950e
6c1950e
libcrypt is getting cleaved from glibc, and it's definition is
6c1950e
getting moved to crypt.h (along side the crypt_r definition that's
6c1950e
existed for some time)
6c1950e
6c1950e
This commit add #include <crypt.h> to keep things working in old
6c1950e
and new libcs.
6c1950e
6c1950e
https://bugs.freedesktop.org/show_bug.cgi?id=104771
6c1950e
---
6c1950e
 src/libaccountsservice/act-user.c | 2 ++
6c1950e
 1 file changed, 2 insertions(+)
6c1950e
6c1950e
diff --git a/src/libaccountsservice/act-user.c b/src/libaccountsservice/act-user.c
6c1950e
index 70691a0..da46bc5 100644
6c1950e
--- a/src/libaccountsservice/act-user.c
6c1950e
+++ b/src/libaccountsservice/act-user.c
6c1950e
@@ -1,58 +1,60 @@
6c1950e
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
6c1950e
  *
6c1950e
  * Copyright (C) 2004-2005 James M. Cape <jcape@ignore-your.tv>.
6c1950e
  * Copyright (C) 2007-2008 William Jon McCann <mccann@jhu.edu>
6c1950e
  *
6c1950e
  * This program is free software; you can redistribute it and/or modify
6c1950e
  * it under the terms of the GNU General Public License as published by
6c1950e
  * the Free Software Foundation; either version 2 of the License, or
6c1950e
  * (at your option) any later version.
6c1950e
  *
6c1950e
  * This program is distributed in the hope that it will be useful,
6c1950e
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
6c1950e
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6c1950e
  * GNU General Public License for more details.
6c1950e
  *
6c1950e
  * You should have received a copy of the GNU General Public License
6c1950e
  * along with this program; if not, write to the Free Software
6c1950e
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
6c1950e
  */
6c1950e
 
6c1950e
 #include <config.h>
6c1950e
 
6c1950e
 #include <float.h>
6c1950e
 #include <string.h>
6c1950e
 #include <sys/types.h>
6c1950e
 #include <sys/stat.h>
6c1950e
 #include <unistd.h>
6c1950e
 
6c1950e
+#include <crypt.h>
6c1950e
+
6c1950e
 #include <glib.h>
6c1950e
 #include <glib/gi18n.h>
6c1950e
 #include <gio/gio.h>
6c1950e
 
6c1950e
 #include "act-user-private.h"
6c1950e
 #include "accounts-user-generated.h"
6c1950e
 
6c1950e
 /**
6c1950e
  * SECTION:act-user
6c1950e
  * @title: ActUser
6c1950e
  * @short_description: information about a user account
6c1950e
  *
6c1950e
  * An ActUser object represents a user account on the system.
6c1950e
  */
6c1950e
 
6c1950e
 /**
6c1950e
  * ActUser:
6c1950e
  *
6c1950e
  * Represents a user account on the system.
6c1950e
  */
6c1950e
 
6c1950e
 /**
6c1950e
  * ActUserAccountType:
6c1950e
  * @ACT_USER_ACCOUNT_TYPE_STANDARD: Normal non-administrative user
6c1950e
  * @ACT_USER_ACCOUNT_TYPE_ADMINISTRATOR: Administrative user
6c1950e
  *
6c1950e
  * Type of user account
6c1950e
  */
6c1950e
 
6c1950e
 /**
6c1950e
-- 
6c1950e
2.14.3
6c1950e