blob: d5291f2f3ac3b418cd121c1b05d9581a9d0b8dd3 [file] [log] [blame]
"Robert P. J. Day"63fc1a92006-07-02 19:47:05 +00001/* vi: set sw=4 ts=4: */
Mike Frysinger7031f622006-05-08 03:20:50 +00002/* common.h
3 *
4 * Russ Dill <Russ.Dill@asu.edu> September 2001
5 * Rewritten by Vladimir Oleynik <dzo@simtreas.ru> (C) 2003
6 *
Rob Landley3f785612006-05-28 01:06:36 +00007 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
Mike Frysinger7031f622006-05-08 03:20:50 +00008 */
9
10#ifndef _COMMON_H
11#define _COMMON_H
12
Mike Frysinger7031f622006-05-08 03:20:50 +000013#include "libbb_udhcp.h"
14
Mike Frysinger7031f622006-05-08 03:20:50 +000015long uptime(void);
Mike Frysinger7031f622006-05-08 03:20:50 +000016
Rob Landley3f785612006-05-28 01:06:36 +000017#if ENABLE_FEATURE_UDHCP_DEBUG
Denis Vlasenko3538b9a2006-09-06 18:36:50 +000018# define DEBUG(str, args...) bb_info_msg(str, ## args)
Mike Frysinger7031f622006-05-08 03:20:50 +000019#else
Denis Vlasenko3538b9a2006-09-06 18:36:50 +000020# define DEBUG(str, args...) do {;} while(0)
Mike Frysinger7031f622006-05-08 03:20:50 +000021#endif
22
23#endif