summaryrefslogtreecommitdiff
path: root/src/bio.h
diff options
context:
space:
mode:
authorDaniel Dai <764122422@qq.com>2019-11-20 20:18:00 -0500
committerDaniel Dai <764122422@qq.com>2019-11-20 20:39:04 -0500
commitbfd8c1fdd2218c0c4d965338291b084a9ff52ec9 (patch)
tree7b3c1cc5f20d1ead32598cd6466745e5df0fb1e4 /src/bio.h
parent3243252cb05869ed4abd49f06e45d7eac4912298 (diff)
downloadredis-bfd8c1fdd2218c0c4d965338291b084a9ff52ec9.tar.gz
macro fix
macro fix
Diffstat (limited to 'src/bio.h')
-rw-r--r--src/bio.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bio.h b/src/bio.h
index 4b15d1c4d..6c2155941 100644
--- a/src/bio.h
+++ b/src/bio.h
@@ -27,6 +27,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef __BIO_H
+#define __BIO_H
+
/* Exported API */
void bioInit(void);
void bioCreateBackgroundJob(int type, void *arg1, void *arg2, void *arg3);
@@ -40,3 +43,5 @@ void bioKillThreads(void);
#define BIO_AOF_FSYNC 1 /* Deferred AOF fsync. */
#define BIO_LAZY_FREE 2 /* Deferred objects freeing. */
#define BIO_NUM_OPS 3
+
+#endif