]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - libutil/libutil.h
expand_number() needs uint64_t, declare it here if not already declared.
[pw-darwin.git] / libutil / libutil.h
index 5b7ffad0a447aab445aa5ac9994e5c1b4d6dc9b8..66104e974f131d684b4ab31012d808b5839486f0 100644 (file)
@@ -52,6 +52,11 @@ typedef      __int64_t       int64_t;
 #define        _INT64_T_DECLARED
 #endif
 
 #define        _INT64_T_DECLARED
 #endif
 
+#ifndef _UINT64_T_DECLARED
+typedef        __uint64_t      uint64_t;
+#define        _UINT64_T_DECLARED
+#endif
+
 #ifndef _PID_T_DECLARED
 typedef        __pid_t         pid_t;
 #define        _PID_T_DECLARED
 #ifndef _PID_T_DECLARED
 typedef        __pid_t         pid_t;
 #define        _PID_T_DECLARED
@@ -109,7 +114,7 @@ int forkpty(int *_amaster, char *_name,
                     struct termios *_termp, struct winsize *_winp);
 int    humanize_number(char *_buf, size_t _len, int64_t _number,
            const char *_suffix, int _scale, int _flags);
                     struct termios *_termp, struct winsize *_winp);
 int    humanize_number(char *_buf, size_t _len, int64_t _number,
            const char *_suffix, int _scale, int _flags);
-int    expand_number(const char *_buf, int64_t *_num);
+int    expand_number(const char *_buf, uint64_t *_num);
 const char *uu_lockerr(int _uu_lockresult);
 int    uu_lock(const char *_ttyname);
 int    uu_unlock(const char *_ttyname);
 const char *uu_lockerr(int _uu_lockresult);
 int    uu_lock(const char *_ttyname);
 int    uu_unlock(const char *_ttyname);