pam: Add include for asprintf to copy/paste header

This commit is contained in:
Bastien Nocera
2020-01-14 15:16:24 +01:00
parent 986a42bcd1
commit c6e72c5f28
3 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _GNU_SOURCE
#error _GNU_SOURCE must be defined
#endif
#include <stdio.h>
struct {
const char *dbus_name;
const char *place_str_generic;

View File

@ -20,6 +20,7 @@
#include <config.h>
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

View File

@ -17,6 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#define _GNU_SOURCE
#include <stdlib.h>
#include <string.h>
#include <locale.h>