summaryrefslogtreecommitdiff
path: root/sql/structs.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/structs.h')
-rw-r--r--sql/structs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/structs.h b/sql/structs.h
index dec1e4de0c7..8728dee1918 100644
--- a/sql/structs.h
+++ b/sql/structs.h
@@ -847,12 +847,17 @@ public:
class Timeval: public timeval
{
+protected:
+ Timeval() { }
public:
Timeval(my_time_t sec, ulong usec)
{
tv_sec= sec;
tv_usec= usec;
}
+ explicit Timeval(const timeval &tv)
+ :timeval(tv)
+ { }
};