From 597d0f27f53cf152edd1c230def4fd7983ac5919 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Thu, 12 Oct 2006 09:33:38 +0200 Subject: applied Salmi's patch --- slock.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'slock.c') diff --git a/slock.c b/slock.c index 866400d..12c991f 100644 --- a/slock.c +++ b/slock.c @@ -1,7 +1,7 @@ /* (C)opyright MMIV-MMV Anselm R. Garbe * See LICENSE file for license details. */ -#define _XOPEN_SOURCE +#define _XOPEN_SOURCE 500 #if HAVE_SHADOW_H #include @@ -9,6 +9,7 @@ #include #endif +#include #include #include #include @@ -22,13 +23,13 @@ int main(int argc, char **argv) { char curs[] = {0, 0, 0, 0, 0, 0, 0, 0}; char buf[32], passwd[256]; - int num, prev_nitem, screen; + int num, screen; #if HAVE_SHADOW_H struct spwd *sp; #else struct passwd *pw; #endif - unsigned int i, len; + unsigned int len; Bool running = True; Cursor invisible; Display *dpy; -- cgit v1.2.3-70-g09d2