projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Log a warning if the content is compressed, filtering is
[privoxy.git]
/
miscutil.h
diff --git
a/miscutil.h
b/miscutil.h
index
2762198
..
21f3c16
100644
(file)
--- a/
miscutil.h
+++ b/
miscutil.h
@@
-1,6
+1,6
@@
#ifndef MISCUTIL_H_INCLUDED
#define MISCUTIL_H_INCLUDED
#ifndef MISCUTIL_H_INCLUDED
#define MISCUTIL_H_INCLUDED
-#define MISCUTIL_H_VERSION "$Id: miscutil.h,v 1.2
4 2006/08/17 17:15:10
fabiankeil Exp $"
+#define MISCUTIL_H_VERSION "$Id: miscutil.h,v 1.2
6 2007/04/08 17:04:51
fabiankeil Exp $"
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/miscutil.h,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/miscutil.h,v $
@@
-10,7
+10,7
@@
* each too small to deserve their own file but don't
* really fit in any other file.
*
* each too small to deserve their own file but don't
* really fit in any other file.
*
- * Copyright : Written by and Copyright (C) 2001 the SourceForge
+ * Copyright : Written by and Copyright (C) 2001
-2007
the SourceForge
* Privoxy team. http://www.privoxy.org/
*
* Based on the Internet Junkbuster originally written
* Privoxy team. http://www.privoxy.org/
*
* Based on the Internet Junkbuster originally written
@@
-37,6
+37,13
@@
*
* Revisions :
* $Log: miscutil.h,v $
*
* Revisions :
* $Log: miscutil.h,v $
+ * Revision 1.26 2007/04/08 17:04:51 fabiankeil
+ * Add macro for strlcpy() in case the libc lacks it.
+ *
+ * Revision 1.25 2007/01/18 15:03:20 fabiankeil
+ * Don't include replacement timegm() if
+ * putenv() or tzset() isn't available.
+ *
* Revision 1.24 2006/08/17 17:15:10 fabiankeil
* - Back to timegm() using GnuPG's replacement if necessary.
* Using mktime() and localtime() could add a on hour offset if
* Revision 1.24 2006/08/17 17:15:10 fabiankeil
* - Back to timegm() using GnuPG's replacement if necessary.
* Using mktime() and localtime() could add a on hour offset if
@@
-198,14
+205,20
@@
long int pick_from_range(long int range);
extern char *strdup(const char *s);
#endif /* def __MINGW32__ */
extern char *strdup(const char *s);
#endif /* def __MINGW32__ */
-#if
def __OS2__
+#if
ndef HAVE_SNPRINTF
extern int snprintf(char *, size_t, const char *, /*args*/ ...);
extern int snprintf(char *, size_t, const char *, /*args*/ ...);
-#endif /*
def __OS2__
*/
+#endif /*
ndef HAVE_SNPRINTF
*/
#if !defined(HAVE_TIMEGM) && defined(HAVE_TZSET) && defined(HAVE_PUTENV)
time_t timegm(struct tm *tm);
#endif /* !defined(HAVE_TIMEGM) && defined(HAVE_TZSET) && defined(HAVE_PUTENV) */
#if !defined(HAVE_TIMEGM) && defined(HAVE_TZSET) && defined(HAVE_PUTENV)
time_t timegm(struct tm *tm);
#endif /* !defined(HAVE_TIMEGM) && defined(HAVE_TZSET) && defined(HAVE_PUTENV) */
+#if !defined(HAVE_STRLCPY)
+/* Here's looking at you, Ulrich. */
+#define strlcpy(dst, src, size) (size_t)snprintf((dst), (size), "%s", (src))
+#define HAVE_STRLCPY 1
+#endif /* ndef HAVE_STRLCPY*/
+
/* Revision control strings from this header and associated .c file */
extern const char miscutil_rcs[];
extern const char miscutil_h_rcs[];
/* Revision control strings from this header and associated .c file */
extern const char miscutil_rcs[];
extern const char miscutil_h_rcs[];