Merge commit 'v3.3.1' into try-3.3.1
[debian/gnuradio] / gnuradio-core / src / lib / general / gr_delay.cc
index 73b61a9a0cba8dfcc4ff8d06d87eacd1ad0757c0..b06346f5959fb70b891f870ee3e9b1596181d4bc 100644 (file)
@@ -1,12 +1,12 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2007 Free Software Foundation, Inc.
+ * Copyright 2007,2010 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
  * GNU Radio is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
+ * the Free Software Foundation; either version 3, or (at your option)
  * any later version.
  * 
  * GNU Radio is distributed in the hope that it will be useful,
 
 #include <gr_delay.h>
 #include <gr_io_signature.h>
+#include <string.h>
 
 gr_delay_sptr
 gr_make_delay (size_t itemsize, int delay)
 {
-  return gr_delay_sptr (new gr_delay (itemsize, delay));
+  return gnuradio::get_initial_sptr(new gr_delay (itemsize, delay));
 }
 
 gr_delay::gr_delay (size_t itemsize, int delay)