diff options
| author | Richard M. Stallman | 1995-07-30 07:07:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-07-30 07:07:39 +0000 |
| commit | 79dbff47727219cf8f79c3ea766c6807f3962e3b (patch) | |
| tree | 963574d1b445d4599bf198e1909757553efbc2ec /lib-src | |
| parent | 133c7a8ac25e6ebc073e479a08ba6e05c3f0910c (diff) | |
| download | emacs-79dbff47727219cf8f79c3ea766c6807f3962e3b.tar.gz emacs-79dbff47727219cf8f79c3ea766c6807f3962e3b.zip | |
(gettimeofday): New function, defined if necessary.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/profile.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib-src/profile.c b/lib-src/profile.c index d0c4b93a0d5..7f2b416ee4b 100644 --- a/lib-src/profile.c +++ b/lib-src/profile.c | |||
| @@ -61,6 +61,23 @@ get_time () | |||
| 61 | return time_string; | 61 | return time_string; |
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | #if ! defined (HAVE_GETTIMEOFDAY) && defined (HAVE_TIMEVAL) | ||
| 65 | |||
| 66 | /* ARGSUSED */ | ||
| 67 | gettimeofday (tp, tzp) | ||
| 68 | struct timeval *tp; | ||
| 69 | struct timezone *tzp; | ||
| 70 | { | ||
| 71 | extern long time (); | ||
| 72 | |||
| 73 | tp->tv_sec = time ((long *)0); | ||
| 74 | tp->tv_usec = 0; | ||
| 75 | if (tzp != 0) | ||
| 76 | tzp->tz_minuteswest = -1; | ||
| 77 | } | ||
| 78 | |||
| 79 | #endif | ||
| 80 | |||
| 64 | void | 81 | void |
| 65 | main () | 82 | main () |
| 66 | { | 83 | { |