summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-05-13 14:42:08 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-05-13 14:42:08 +0000
commitbbb99effbfe07b1fd8ac7be9ddf927b803cbe706 (patch)
tree9b58a48751f7696f62ea4e1e6a549f7adc73ba1d /lib
parentfe6fbfdd3e15c0827cab9d4d0d3d97580da9e727 (diff)
downloadmailutils-bbb99effbfe07b1fd8ac7be9ddf927b803cbe706.tar.gz
mailutils-bbb99effbfe07b1fd8ac7be9ddf927b803cbe706.tar.bz2
Added missing includes.
Diffstat (limited to 'lib')
-rw-r--r--lib/utmp.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/utmp.c b/lib/utmp.c
index 8ae280744..8511cd260 100644
--- a/lib/utmp.c
+++ b/lib/utmp.c
@@ -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 ()
{

Return to:

Send suggestions and report system problems to the System administrator.