Define _LGPL_SOURCE in test applications
[lttng-tools.git] / tests / utils / testapp / gen-ust-events / gen-ust-events.c
index 5f1e5bdd4e1dec155399fbb38c418ef82f54752d..2f4dc275e1878a1dd89c791cd388da7b6fe82e5b 100644 (file)
@@ -15,6 +15,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#define _LGPL_SOURCE
 #include <assert.h>
 #include <arpa/inet.h>
 #include <fcntl.h>
@@ -60,12 +61,12 @@ int main(int argc, char **argv)
                nr_iter = atoi(argv[1]);
        }
 
-       if (argc == 3) {
+       if (argc >= 3) {
                /* By default, don't wait unless user specifies. */
                nr_usec = atoi(argv[2]);
        }
 
-       if (argc == 4) {
+       if (argc >= 4) {
                tmp_file_path = argv[3];
        }
 
This page took 0.024733 seconds and 5 git commands to generate.