Commit bbb99eff bbb99effbfe07b1fd8ac7be9ddf927b803cbe706 by Sergey Poznyakoff

Added missing includes.

1 parent fe6fbfdd
......@@ -16,6 +16,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <sys/types.h>
#include <sys/time.h>
#include <utmp.h>
#include <fcntl.h>
#include <unistd.h>
......@@ -27,6 +29,14 @@ static int fd = -1;
static struct utmp ut;
void
endutent ()
{
if (fd > 0)
close (fd);
fd = -1;
}
void
setutent ()
{
endutent ();
......@@ -35,14 +45,6 @@ setutent ()
perror ("setutent: Can't open utmp file");
}
void
endutent ()
{
if (fd > 0)
close (fd);
fd = -1;
}
struct utmp *
getutent ()
{
......